Skip to content

Commit

Permalink
Don't override built-in input variable
Browse files Browse the repository at this point in the history
  • Loading branch information
homebysix committed Jun 24, 2019
1 parent f2cce46 commit 1d7590d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pre_commit_hooks/check_autopkg_recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ def main(argv=None):
)
retval = 1

input = recipe.get("Input", recipe.get("input", recipe.get("INPUT")))
if input and "pkginfo" in input:
if not validate_pkginfo_key_types(input["pkginfo"], filename):
input_key = recipe.get("Input", recipe.get("input", recipe.get("INPUT")))
if input_key and "pkginfo" in input_key:
if not validate_pkginfo_key_types(input_key["pkginfo"], filename):
retval = 1

# Warn about comments that would be lost during `plutil -convert xml1`
Expand Down

0 comments on commit 1d7590d

Please sign in to comment.