Skip to content

Commit e148dfd

Browse files
committed
Add missing variables for duplicate identifier output
1 parent 6e6f226 commit e148dfd

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pre_commit_hooks/check_autopkg_recipes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,11 @@ def main(argv=None):
502502

503503
# Ensure the recipe identifier isn't duplicated.
504504
if recipe["Identifier"] in seen_identifiers:
505-
print('{}: Identifier "{}" is shared by another recipe in this repo.')
505+
print(
506+
'{}: Identifier "{}" is shared by another recipe in this repo.'.format(
507+
filename, recipe["Identifier"]
508+
)
509+
)
506510
retval = 1
507511
else:
508512
seen_identifiers.append(recipe["Identifier"])

0 commit comments

Comments
 (0)