mirror of
https://github.com/munki/munki.git
synced 2026-04-25 22:40:46 -05:00
Revert "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 reverts commit f02cde7f5d.
This commit is contained in:
@@ -932,19 +932,16 @@ def main():
|
||||
# so we need to check InstallInfo.plist and
|
||||
# AppleUpdates.plist again
|
||||
updatesavailable = munkiUpdatesAvailable()
|
||||
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
|
||||
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