Skip to content

Commit

Permalink
Actually run the groups update config. when not in objects mode. BZ 1…
Browse files Browse the repository at this point in the history
…002439.
  • Loading branch information
james-antill committed Oct 7, 2013
1 parent 36de4b6 commit 87bd769
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions yum-cron/yum-cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,11 +1019,16 @@ def updatesCheck(self):
# 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()
Expand Down

0 comments on commit 87bd769

Please sign in to comment.