X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=anteater%2Fsrc%2Fproject_scan.py;h=b80b73f24ee9e371b4a6dd214ae7d62cc3a8051c;hb=21eba438574c13ecd49119ab9a7df882e517f566;hp=3a04a8359b60c3917411551762122f42f192b42a;hpb=8365245c9dc2f8e2ff2adf8aa84162e420747132;p=releng-anteater.git diff --git a/anteater/src/project_scan.py b/anteater/src/project_scan.py index 3a04a83..b80b73f 100644 --- a/anteater/src/project_scan.py +++ b/anteater/src/project_scan.py @@ -93,9 +93,10 @@ def scan_file(project_dir, project, binary_list, file_audit_list, # Check if Binary is whitelisted hashlist = get_lists.GetLists() - binary_hash = hashlist.binary_hash(project, full_path) + split_path = full_path.split(project + '/', 1)[-1] + binary_hash = hashlist.binary_hash(project, split_path) - if is_binary(full_path) and not binary_list.search(full_path): + if is_binary(full_path): with open(full_path, 'rb') as afile: buf = afile.read() hasher.update(buf)