diff --git a/moscargo.py b/moscargo.py index 3e2e1b6..7e204a1 100644 --- a/moscargo.py +++ b/moscargo.py @@ -8,7 +8,7 @@ #set this to the base of your munki repo: repo_base = '/Users/Shared/repo/' -# ad override the catalog to parse below: +# add override the catalog to parse below: catalog_to_parse = 'all' # yup, stolen whole-heartedly from http://stackoverflow.com/a/22878816/743638 @@ -24,7 +24,7 @@ def key_not_seen(unfiltered_prod_dict): return key_not_seen try: - products = plistlib.readPlist(os.path.join(repo_base, 'catalogs/all')) + products = plistlib.readPlist(os.path.join(repo_base, 'catalogs', catalog_to_parse)) prodlist = [] for prod_dict in products: if not prod_dict.get('installer_type') == 'apple_update_metadata':