Skip to content

Commit c7b125e

Browse files
committed
Look for recipes in the "recipes" key of a plist
https://github.com/autopkg/autopkg/wiki/Running-Multiple-Recipes
1 parent bd7619b commit c7b125e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pre_commit_hooks/check_autopkg_recipe_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def main(argv=None):
4646
elif filename.endswith(".plist"):
4747
try:
4848
with open(filename, "rb") as openfile:
49-
recipe_list = plistlib.load(openfile)
49+
recipe_list = plistlib.load(openfile).get("recipes")
5050
except (ExpatError, ValueError) as err:
5151
print("{}: plist parsing error: {}".format(filename, err))
5252
retval = 1

0 commit comments

Comments
 (0)