[yum-commits] yum-cron/yum-cron.py
James Antill
james at osuosl.org
Mon Oct 7 21:09:19 UTC 2013
yum-cron/yum-cron.py | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
New commits:
commit 87bd7693d0da3be74142dfd8a73f9b1aaa630b7e
Author: James Antill <james at and.org>
Date: Mon Oct 7 17:06:22 2013 -0400
Actually run the groups update config. when not in objects mode. BZ 1002439.
diff --git a/yum-cron/yum-cron.py b/yum-cron/yum-cron.py
index d56a1b6..9f985f9 100755
--- a/yum-cron/yum-cron.py
+++ b/yum-cron/yum-cron.py
@@ -1019,11 +1019,16 @@ class YumCronBase(yum.YumBase):
# Update the metadata
self.populateUpdateMetadata()
- # Exit if we don't need to send messages, or there are no
- # updates
- if not (self.opts.update_messages and (self.refreshUpdates()
- or self.refreshGroupUpdates())):
- sys.exit(0)
+ # Exit if we don't need to send messages
+ if not self.opts.update_messages:
+ sys.exit(0)
+
+ # Check for updates in packages, or groups ... need to run both.
+ pups = self.refreshUpdates()
+ gups = self.refreshGroupUpdates()
+ # If neither have updates, we can just exit.
+ if not (pups or gups):
+ sys.exit(0)
# Build the transaction to find the additional dependencies
self.findDeps()
More information about the Yum-commits
mailing list