We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 612b990 commit c22a777Copy full SHA for c22a777
1 file changed
pre_commit_hooks/check_munki_pkgsinfo.py
@@ -35,6 +35,8 @@ def build_argument_parser():
35
help="Require a blocking_applications array for pkg installers.",
36
)
37
parser.add_argument("filenames", nargs="*", help="Filenames to check.")
38
+ parser.add_argument("--munki_repo", default='.',
39
+ help="path to local munki repo defaults to '.'")
40
return parser
41
42
@@ -174,7 +176,8 @@ def main(argv=None):
174
176
if not any(
175
177
(
178
pkginfo.get("icon_name"),
- os.path.isfile("icons/{}.png".format(pkginfo["name"])),
179
+ os.path.isfile(os.path.join(args.munki_repo,
180
+ "icons/{}.png".format(pkginfo["name"]))),
181
pkginfo.get("installer_type") == "apple_update_metadata",
182
183
):
0 commit comments