If Munki is configured to check and install AppleSoftwareUpdatesOnly, update the LastCheckDate and LastCheckResult

This commit is contained in:
Greg Neagle
2014-08-12 22:44:14 -07:00
parent 4be4674ed1
commit 9f6bc782b4

View File

@@ -760,6 +760,14 @@ def main():
munkicommon.log(traceback.format_exc())
munkicommon.savereport()
raise
if applesoftwareupdatesonly:
# normally we record the result of checking for Munki updates
# but if we are only doing Apple updates, we should record the
# result of the Apple updates check
if appleupdatesavailable:
recordUpdateCheckResult(1)
else:
recordUpdateCheckResult(0)
if options.installonly:
# just look and see if there are already downloaded Apple updates