mirror of
https://github.com/munki/munki.git
synced 2026-04-24 05:49:42 -05:00
When checking for cached Apple updates, use self.GetSoftwareUpdateInfo() instead of self.WriteAppleUpdatesFile() to avoid writing the AppleUpdates.plist twice.
This commit is contained in:
@@ -724,7 +724,10 @@ class AppleUpdates(object):
|
||||
#return False
|
||||
# instead of returning False, return True if we have cached updates
|
||||
# False otherwise
|
||||
return self.WriteAppleUpdatesFile()
|
||||
if self.GetSoftwareUpdateInfo():
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
product_ids = self.GetAvailableUpdateProductIDs()
|
||||
if not product_ids:
|
||||
|
||||
Reference in New Issue
Block a user