X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=anteater%2Fsrc%2Fpatch_scan.py;fp=anteater%2Fsrc%2Fpatch_scan.py;h=3d29c65ecfc204be7a424cde61073df78092bde9;hb=21eba438574c13ecd49119ab9a7df882e517f566;hp=3097d002ed3129027d0424d2a2b7a79f7b269fdf;hpb=8365245c9dc2f8e2ff2adf8aa84162e420747132;p=releng-anteater.git diff --git a/anteater/src/patch_scan.py b/anteater/src/patch_scan.py index 3097d00..3d29c65 100644 --- a/anteater/src/patch_scan.py +++ b/anteater/src/patch_scan.py @@ -84,7 +84,8 @@ def scan_patch(project, patch_file, binary_list, file_audit_list, global failure if is_binary(patch_file): hashlist = get_lists.GetLists() - binary_hash = hashlist.binary_hash(project, patch_file) + split_path = patch_file.split(project + '/', 1)[-1] + binary_hash = hashlist.binary_hash(project, split_path) if not binary_list.search(patch_file): with open(patch_file, 'rb') as afile: buf = afile.read()