mirror of
https://github.com/munki/munki.git
synced 2026-04-23 13:29:26 -05:00
Fix issue 169. Pref AppleSoftwareUpdatesOnly needs to be understood by MSU.app not just managedsoftwareupdate.
This commit is contained in:
@@ -125,6 +125,7 @@ def pref(pref_name):
|
||||
default_prefs = {
|
||||
'ManagedInstallDir': '/Library/Managed Installs',
|
||||
'InstallAppleSoftwareUpdates': False,
|
||||
'AppleSoftwareUpdatesOnly': False,
|
||||
'ShowRemovalDetail': False,
|
||||
'InstallRequiresLogout': False
|
||||
}
|
||||
@@ -269,7 +270,8 @@ def getAppleUpdates():
|
||||
plist = {}
|
||||
appleUpdatesFile = os.path.join(managedinstallbase, 'AppleUpdates.plist')
|
||||
if (os.path.exists(appleUpdatesFile) and
|
||||
pref('InstallAppleSoftwareUpdates')):
|
||||
(pref('InstallAppleSoftwareUpdates') or
|
||||
pref('AppleSoftwareUpdatesOnly'))):
|
||||
try:
|
||||
plist = FoundationPlist.readPlist(appleUpdatesFile)
|
||||
except FoundationPlist.NSPropertyListSerializationException:
|
||||
|
||||
Reference in New Issue
Block a user