[yum-commits] 4 commits - debuginfo-install.py Makefile plugins/fastestmirror plugins/tmprepo plugins/verify repodiff.py repoquery.py repo-rss.py repotrack.py yum-groups-manager.py
Ville Skyttä
scop at osuosl.org
Mon Apr 19 16:30:34 UTC 2010
Makefile | 2 +-
debuginfo-install.py | 1 -
plugins/fastestmirror/fastestmirror-asyncore/fastestmirror-asyncore.py | 1 -
plugins/tmprepo/tmprepo.py | 1 -
plugins/verify/verify.py | 2 ++
repo-rss.py | 1 -
repodiff.py | 1 -
repoquery.py | 6 ++----
repotrack.py | 1 -
yum-groups-manager.py | 1 -
10 files changed, 5 insertions(+), 12 deletions(-)
New commits:
commit cd0428b4992952e3df99ec64bb32d8b76f063ade
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Apr 19 19:29:19 2010 +0300
Fix --verify-configuration-files CLI option.
diff --git a/plugins/verify/verify.py b/plugins/verify/verify.py
index ef38e7f..44e9645 100644
--- a/plugins/verify/verify.py
+++ b/plugins/verify/verify.py
@@ -315,6 +315,8 @@ Verify packages and display data on bad verifications"""
done_prob = True
def doCommand(self, base, basecmd, extcmds):
+ global _verify_configs
+
logger = logging.getLogger("yum.verbose.main")
def msg(x):
logger.log(logginglevels.INFO_2, x)
commit b0fce0832b6ea74a09c1ba30f47d847e9296f514
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Apr 19 19:15:35 2010 +0300
Don't bother grabbing changelog names and texts if we don't have times.
diff --git a/repoquery.py b/repoquery.py
index b8d5017..da0ce53 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -326,9 +326,9 @@ class instPkgQuery(pkgQuery):
def fmt_changelog(self, **kw):
changelog = []
times = self.pkg.tagByName('changelogtime')
- names = self.pkg.tagByName('changelogname')
- texts = self.pkg.tagByName('changelogtext')
if times is not None:
+ names = self.pkg.tagByName('changelogname')
+ texts = self.pkg.tagByName('changelogtext')
for date, author, message in zip(times, names, texts):
changelog.append("* %s %s\n%s\n" % (sec2day(date), author, message))
return "\n".join(changelog)
commit 39f4e0758369db68c7c83af19ccef3849b5c7da6
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Apr 19 19:14:37 2010 +0300
Clean up some unused variables and imports.
diff --git a/debuginfo-install.py b/debuginfo-install.py
index dc41b5f..ea179bd 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -45,7 +45,6 @@ class DebugInfoInstall(YumUtilBase):
DebugInfoInstall.USAGE)
self.logger = logging.getLogger("yum.verbose.cli.debuginfoinstall")
self.optparser = self.getOptionParser()
- opt = self.optparser
# Add util commandline options to the yum-cli ones
if hasattr(self, 'getOptionGroup'):
opts = self.getOptionGroup()
diff --git a/plugins/fastestmirror/fastestmirror-asyncore/fastestmirror-asyncore.py b/plugins/fastestmirror/fastestmirror-asyncore/fastestmirror-asyncore.py
index 11c394f..31b7c99 100644
--- a/plugins/fastestmirror/fastestmirror-asyncore/fastestmirror-asyncore.py
+++ b/plugins/fastestmirror/fastestmirror-asyncore/fastestmirror-asyncore.py
@@ -41,7 +41,6 @@ import os
import sys
import time
import socket
-import string
import urlparse
import datetime
import asyncore
diff --git a/plugins/tmprepo/tmprepo.py b/plugins/tmprepo/tmprepo.py
index 7b00807..52e9731 100644
--- a/plugins/tmprepo/tmprepo.py
+++ b/plugins/tmprepo/tmprepo.py
@@ -193,7 +193,6 @@ def add_repos(base, log, tmp_repos, tvalidate, tlocvalidate, cleanup_dir_temp):
fname = add_mirrorlist_repo(base, trepo)
base.getReposFromConfigFile(fname, validate=validate)
- added = True
# Just do it all again...
base.setupProgressCallbacks()
diff --git a/repo-rss.py b/repo-rss.py
index 845c65e..4a2917c 100755
--- a/repo-rss.py
+++ b/repo-rss.py
@@ -116,7 +116,6 @@ class RepoRSS:
rfc822_format = "%a, %d %b %Y %X GMT"
clog_format = "%a, %d %b %Y GMT"
- xhtml_ns = "http://www.w3.org/1999/xhtml"
escape = self.xmlescape
item = self.rssnode.newChild(None, 'item', None)
diff --git a/repodiff.py b/repodiff.py
index 7ef7c50..a22f9b1 100755
--- a/repodiff.py
+++ b/repodiff.py
@@ -20,7 +20,6 @@ import datetime
import os
import locale
from yum.i18n import to_unicode
-import time
from optparse import OptionParser
diff --git a/repoquery.py b/repoquery.py
index 76b1178..b8d5017 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -329,8 +329,6 @@ class instPkgQuery(pkgQuery):
names = self.pkg.tagByName('changelogname')
texts = self.pkg.tagByName('changelogtext')
if times is not None:
- tmplst = zip(times, names, texts)
-
for date, author, message in zip(times, names, texts):
changelog.append("* %s %s\n%s\n" % (sec2day(date), author, message))
return "\n".join(changelog)
diff --git a/repotrack.py b/repotrack.py
index 1c7158a..ed26b9f 100755
--- a/repotrack.py
+++ b/repotrack.py
@@ -172,7 +172,6 @@ def main():
unprocessed_pkgs = {}
final_pkgs = {}
- user_po_list = []
pkg_list = []
avail = my.pkgSack.returnPackages()
diff --git a/yum-groups-manager.py b/yum-groups-manager.py
index 787efac..5bd9518 100755
--- a/yum-groups-manager.py
+++ b/yum-groups-manager.py
@@ -163,7 +163,6 @@ def main():
if False and opts.show_duplicates:
yb.conf.showdupesfromrepos = True
- __show_all_versions__ = True
if opts.disablerepos:
for repo_match in opts.disablerepos:
for repo in yb.repos.findRepos(repo_match):
commit 2fa00cc4bee200c9a58075df2b663a1f225fcacf
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Apr 19 19:11:13 2010 +0300
Run pylint on plugins/*/*/*.py too.
diff --git a/Makefile b/Makefile
index e05d9cf..8355153 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ SRPM_RELEASE=$(shell awk '/Release:/ { split($$2,a,"%"); print a[1] }' ${PKGNAME
SRPM_FILE = ${PKGNAME}-${VERSION}-${SRPM_RELEASE}.src.rpm
WEBHOST = yum.baseurl.org
WEBPATH = /srv/projects/yum/web/download/yum-utils/
-PY_FILES = $(wildcard *.py) $(wildcard plugins/*/*.py)
+PY_FILES = $(wildcard *.py) $(wildcard plugins/*/*.py) $(wildcard plugins/*/*/*.py)
NMPROG=yum-NetworkManager-dispatcher
NMPATH=$(DESTDIR)/etc/NetworkManager/dispatcher.d
More information about the Yum-commits
mailing list