Use filesystem flag instead of NSDistributedNotification to signal that managedsoftwareupdate should stop. Turns out you can't send NSDistributedNotifications from user-land apps to background daemons launched by launchd.

This commit is contained in:
Greg Neagle
2014-02-14 12:02:19 -08:00
parent 709c4a0fa0
commit bfea0b1673
4 changed files with 12 additions and 71 deletions

View File

@@ -657,9 +657,6 @@ def main():
if applesoftwareupdatesonly and options.verbose:
print ('NOTE: managedsoftwareupdate is configured to process Apple '
'Software Updates only.')
# TESTING, TESTING
munkicommon.initNotificationDelegate()
updatecheckresult = None
if not options.installonly and not applesoftwareupdatesonly:
@@ -894,8 +891,6 @@ def main():
'SuppressUserNotification is true.')
munkicommon.cleanUpTmpDir()
# TESTING TESTING
munkicommon.removeNotificationDelegate()
if mustlogout:
# not handling this currently
pass