Log warning when "Products" key is not found in filtered Apple Update catalog

Log warning when "Products" key is not found in filtered Apple Update catalog
This commit is contained in:
Justin McWilliams
2015-10-28 12:37:09 -04:00
parent f7f4b70106
commit e9b013dbf7
+2
View File
@@ -330,6 +330,8 @@ class AppleUpdates(object):
of these files."""
catalog = FoundationPlist.readPlist(self.filtered_catalog_path)
if not 'Products' in catalog:
munkicommon.display_warning(
'"Products" not found in %s', self.filtered_catalog_path)
return
for product_key in catalog['Products'].keys():