You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pups=self.refreshUpdates()
gups=self.refreshGroupUpdates()
# If neither have updates, we can just exit.ifnot (pupsorgups):
sys.exit(0)
Go ahead and emit message and release the lock even when no updates are available. Possible to give emitter flag to allow this to be configurable.
pups=self.refreshUpdates()
gups=self.refreshGroupUpdates()
# If neither have updates, we can just exit.ifnot (pupsorgups):
self.emitMessages()
self.releaseLocks()
sys.exit(0)
classUpdateEmitter(object):
defsendMessages(self):
"""Send the messages that have been stored. This should be overridden by inheriting classes to emit the messages according to their individual methods. """ifself.opts.emit_when_already_updatedandnotself.output:
self.output.append("Yum Cron Update ran successfully and 0 packages needing updated")
# Convert any byte strings to unicode objects now (so that we avoid# implicit conversions with the "ascii" codec later when join()-ing the# strings, leading to tracebacks).self.output= [x.decode('utf-8') ifisinstance(x, str) elsexforxinself.output]
This will allow configurability and notification even when 0 packages need updating.
The text was updated successfully, but these errors were encountered:
For updatesCheck where:
Go ahead and emit message and release the lock even when no updates are available. Possible to give emitter flag to allow this to be configurable.
This will allow configurability and notification even when 0 packages need updating.
The text was updated successfully, but these errors were encountered: