mirror of
https://github.com/munki/munki.git
synced 2026-05-02 18:30:03 -05:00
After doing unattended installs, don't recheck Apple updates availability if there were none available when we started (or we weren't supposed to check them at all)
This commit is contained in:
@@ -921,16 +921,19 @@ def main():
|
||||
# so we need to check InstallInfo.plist and
|
||||
# AppleUpdates.plist again
|
||||
updatesavailable = munkiUpdatesAvailable()
|
||||
try:
|
||||
appleupdatesavailable = \
|
||||
appleupdates.appleSoftwareUpdatesAvailable(
|
||||
suppresscheck=True, client_id=options.id)
|
||||
except:
|
||||
munkicommon.display_error(
|
||||
'Unexpected error in appleupdates:')
|
||||
munkicommon.log(traceback.format_exc())
|
||||
munkicommon.savereport()
|
||||
raise
|
||||
if appleupdatesavailable:
|
||||
# there were Apple updates available, but we might have
|
||||
# installed some unattended
|
||||
try:
|
||||
appleupdatesavailable = (
|
||||
appleupdates.appleSoftwareUpdatesAvailable(
|
||||
suppresscheck=True, client_id=options.id))
|
||||
except:
|
||||
munkicommon.display_error(
|
||||
'Unexpected error in appleupdates:')
|
||||
munkicommon.log(traceback.format_exc())
|
||||
munkicommon.savereport()
|
||||
raise
|
||||
if appleupdatesavailable or updatesavailable:
|
||||
# set a flag to notify the user of available updates
|
||||
# after we conclude this run.
|
||||
|
||||
Reference in New Issue
Block a user