[yum-commits] debuginfo-install.py find-repos-of-install.py plugins/versionlock reposync.py
Tim Lauridsen
timlau at osuosl.org
Sat Nov 7 06:09:36 UTC 2009
debuginfo-install.py | 3 ++-
find-repos-of-install.py | 2 +-
plugins/versionlock/versionlock.py | 2 +-
reposync.py | 2 +-
4 files changed, 5 insertions(+), 4 deletions(-)
New commits:
commit bffd51851763b6151e335fbdf7b4f876389df444
Author: Tim Lauridsen <timlau at fedoraproject.org>
Date: Sat Nov 7 07:08:18 2009 +0100
Fix pylint errors:
************* Module debuginfo-install
E0602: 78:DebugInfoInstall.main: Undefined variable 'RepoError'
E0602: 80:DebugInfoInstall.main: Undefined variable 'to_unicode'
************* Module find-repos-of-install
E0602: 52: Undefined variable 'repoq'
************* Module reposync
W0301:183: Unnecessary semicolon
************* Module versionlock
W0611: 21: Unused import compareEVR
diff --git a/debuginfo-install.py b/debuginfo-install.py
index 6ff5b8a..1732dd6 100755
--- a/debuginfo-install.py
+++ b/debuginfo-install.py
@@ -23,6 +23,7 @@ import yum.Errors
from utils import YumUtilBase
from yum import _
+from yum.i18n import to_unicode
import logging
import rpmUtils
@@ -75,7 +76,7 @@ class DebugInfoInstall(YumUtilBase):
r.enable()
try:
self.doRepoSetup(thisrepo=r.id)
- except RepoError, e:
+ except yum.Errors.RepoError, e:
self.logger.critical("Could not access repo %s error was: %s" %
(r.id, to_unicode(str(e))))
sys.exit(1)
diff --git a/find-repos-of-install.py b/find-repos-of-install.py
index 3c66277..0578295 100644
--- a/find-repos-of-install.py
+++ b/find-repos-of-install.py
@@ -49,7 +49,7 @@ if True:
(opts, args) = parser.parse_args()
if not my.setCacheDir(opts.tempcache):
- repoq.logger.error("Error: Could not make cachedir, exiting")
+ my.logger.error("Error: Could not make cachedir, exiting")
sys.exit(50)
if opts.cache:
diff --git a/plugins/versionlock/versionlock.py b/plugins/versionlock/versionlock.py
index b2dad3c..89a6b83 100644
--- a/plugins/versionlock/versionlock.py
+++ b/plugins/versionlock/versionlock.py
@@ -18,7 +18,7 @@
from yum.plugins import PluginYumExit
from yum.plugins import TYPE_CORE
-from rpmUtils.miscutils import splitFilename, compareEVR
+from rpmUtils.miscutils import splitFilename
import urlgrabber
import urlgrabber.grabber
diff --git a/reposync.py b/reposync.py
index 10df897..5c8ee32 100755
--- a/reposync.py
+++ b/reposync.py
@@ -180,7 +180,7 @@ def main():
# --norepopath can only be sensibly used with a single repository:
if len(my.repos.listEnabled()) > 1 and opts.norepopath:
print >> sys.stderr, "Error: Can't use --norepopath with multiple repositories"
- sys.exit(1);
+ sys.exit(1)
# Use progress bar display when downloading repo metadata
# and package files
More information about the Yum-commits
mailing list