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:
Greg Neagle
2013-02-12 09:15:52 -08:00
parent 9f7a818edc
commit a3db265246
+4 -1
View File
@@ -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: