Skip to content

Commit 75c466d

Browse files
committed
Remove CodeSignatureVerifier arguments check
1 parent 9a2c241 commit 75c466d

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

pre_commit_hooks/check_autopkg_recipes.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -174,26 +174,6 @@ def validate_endofcheckphase(process, filename):
174174
return passed
175175

176176

177-
def validate_codesignatureverifier(process, filename):
178-
"""Ensure CodeSignatureVerifier uses correct arguments."""
179-
180-
passed = True
181-
csv_args = [
182-
x.get("Arguments")
183-
for x in process
184-
if x.get("Processor") == "CodeSignatureVerifier"
185-
]
186-
if csv_args:
187-
if "requirements" in csv_args[0]:
188-
print(
189-
'{}: Found unexpected key "{}" in '
190-
"CodeSignatureVerifier arguments.".format(filename, "requirements")
191-
)
192-
passed = False
193-
194-
return passed
195-
196-
197177
def validate_minimumversion(process, min_vers, ignore_min_vers_before, filename):
198178
"""Ensure MinimumVersion is set appropriately for the processors used."""
199179

@@ -558,9 +538,6 @@ def main(argv=None):
558538
if not validate_endofcheckphase(process, filename):
559539
retval = 1
560540

561-
if not validate_codesignatureverifier(process, filename):
562-
retval = 1
563-
564541
if not validate_no_var_in_app_path(process, filename):
565542
retval = 1
566543

0 commit comments

Comments
 (0)