Code Review
/
releng-anteater.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Implements full path for hash checks of binaries
[releng-anteater.git]
/
anteater
/
src
/
patch_scan.py
diff --git
a/anteater/src/patch_scan.py
b/anteater/src/patch_scan.py
index
3097d00
..
3d29c65
100644
(file)
--- 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()
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()
if not binary_list.search(patch_file):
with open(patch_file, 'rb') as afile:
buf = afile.read()