rel-eng/packages/spacewalk-utils | 2 +-
utils/cloneByDate.py | 4 +++-
utils/spacewalk-utils.spec | 5 ++++-
3 files changed, 8 insertions(+), 3 deletions(-)
New commits:
commit e3636a818d2ddf5d457b5fc84c6c432275b87997
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Dec 21 09:49:11 2012 +0100
Automatic commit of package [spacewalk-utils] release [1.9.8-1].
diff --git a/rel-eng/packages/spacewalk-utils b/rel-eng/packages/spacewalk-utils
index 9dd1215..a1c4200 100644
--- a/rel-eng/packages/spacewalk-utils
+++ b/rel-eng/packages/spacewalk-utils
@@ -1 +1 @@
-1.9.7-1 utils/
+1.9.8-1 utils/
diff --git a/utils/spacewalk-utils.spec b/utils/spacewalk-utils.spec
index e0ac0d5..330ef23 100644
--- a/utils/spacewalk-utils.spec
+++ b/utils/spacewalk-utils.spec
@@ -1,7 +1,7 @@
%define rhnroot %{_prefix}/share/rhn
Name: spacewalk-utils
-Version: 1.9.7
+Version: 1.9.8
Release: 1%{?dist}
Summary: Utilities that may be run against a Spacewalk server.
@@ -86,6 +86,9 @@ spacewalk-pylint $RPM_BUILD_ROOT%{rhnroot}
%changelog
+* Fri Dec 21 2012 Jan Pazdziora 1.9.8-1
+- Silencing pylint warnings.
+
* Fri Dec 21 2012 Jan Pazdziora 1.9.7-1
- We cannot have except and finally in the same try block for python 2.4.
commit ba85ec659d8b7d65a73cf5fec51cbea2109f5414
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Dec 21 09:23:51 2012 +0100
Silencing pylint warnings.
Addressing
************* Module cloneByDate
C0301:720: Line too long (136/120)
W0631:350:ChannelTreeCloner.dep_solve: Using possibly undefined loop variable
'repo'
diff --git a/utils/cloneByDate.py b/utils/cloneByDate.py
index 91c8288..d59e7ec 100644
--- a/utils/cloneByDate.py
+++ b/utils/cloneByDate.py
@@ -337,6 +337,7 @@ class ChannelTreeCloner:
# dep solver expects the metadata to be in /repodata directory;
# create temporary symlinks
temp_repo_links = []
+ repo = None
for repo in repos:
yum_repodata_path = "%s/repodata" %
(repo['relative_path'])
create_repodata_link(repo['relative_path'], yum_repodata_path)
@@ -718,7 +719,8 @@ class UserError(Exception):
class UserRepoError(UserError):
def __init__(self, label, yum_error=None):
- msg = "Unable to read repository information.\nPlease verify repodata has
been generated in /var/cache/rhn/repodata/%s." % label
+ msg = "Unable to read repository information.\n" \
+ + "Please verify repodata has been generated in
/var/cache/rhn/repodata/%s." % label
if yum_error:
msg += "\nError from yum: %s" % yum_error
UserError.__init__(self, msg)
Show replies by date