rel-eng/packages/spacewalk-utils | 2 +-
utils/cloneByDate.py | 13 ++++++-------
utils/spacewalk-utils.spec | 5 ++++-
3 files changed, 11 insertions(+), 9 deletions(-)
New commits:
commit e1a03be4b7b7b1f6980ef211881821f11ed66512
Author: Stephen Herr <sherr(a)redhat.com>
Date: Tue Feb 25 16:37:59 2014 -0500
Automatic commit of package [spacewalk-utils] release [2.2.2-1].
diff --git a/rel-eng/packages/spacewalk-utils b/rel-eng/packages/spacewalk-utils
index f432f36..e53bdc6 100644
--- a/rel-eng/packages/spacewalk-utils
+++ b/rel-eng/packages/spacewalk-utils
@@ -1 +1 @@
-2.2.1-1 utils/
+2.2.2-1 utils/
diff --git a/utils/spacewalk-utils.spec b/utils/spacewalk-utils.spec
index c66208e..9cea310 100644
--- a/utils/spacewalk-utils.spec
+++ b/utils/spacewalk-utils.spec
@@ -1,7 +1,7 @@
%define rhnroot %{_prefix}/share/rhn
Name: spacewalk-utils
-Version: 2.2.1
+Version: 2.2.2
Release: 1%{?dist}
Summary: Utilities that may be run against a Spacewalk server.
@@ -91,6 +91,9 @@ spacewalk-pylint $RPM_BUILD_ROOT%{rhnroot}
%changelog
+* Tue Feb 25 2014 Stephen Herr <sherr(a)redhat.com> 2.2.2-1
+- 1069879 - spacwalk-repo-sync prints the same message for every channel.
+
* Tue Feb 25 2014 Tomas Lestach <tlestach(a)redhat.com> 2.2.1-1
- removing spacewalk18 and spacewalk19 channel repo configurations
- remove fc18 channel repo configurations
commit 25d8b41ec31b89b2372cd7d43f8bef41b0313dbc
Author: Dimitar Yordanov <dyordano(a)redhat.com>
Date: Tue Feb 25 16:37:39 2014 -0500
1069879 - spacwalk-repo-sync prints the same message for every channel.
diff --git a/utils/cloneByDate.py b/utils/cloneByDate.py
index 588a1da..7824395 100644
--- a/utils/cloneByDate.py
+++ b/utils/cloneByDate.py
@@ -128,7 +128,11 @@ def main(options):
print "Reading repository information."
-
+ if options.use_update_date:
+ options.use_update_date = 'update_date'
+ else:
+ options.use_update_date = 'issue_date'
+ print "Using %s." % options.use_update_date
cloners = []
needed_channels = []
@@ -561,13 +565,8 @@ class ChannelCloner:
""" Returns tuple of all available for cloning, and what falls in
the date range"""
available_errata = self.db_api.applicable_errata(self.from_label, self.to_label)
to_clone = []
- if self.use_update_date:
- date_to_use = 'update_date'
- else:
- date_to_use = 'issue_date'
- print "Using ", date_to_use
for err in available_errata:
- if self.to_date and err[date_to_use].date() <= self.to_date.date():
+ if self.to_date and err[self.use_update_date].date() <=
self.to_date.date():
if self.security_only:
if err['advisory_type'] == 'Security Advisory':
to_clone.append(err)
Show replies by date