aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--anteater/src/get_lists.py8
-rw-r--r--anteater/src/patch_scan.py2
2 files changed, 7 insertions, 3 deletions
diff --git a/anteater/src/get_lists.py b/anteater/src/get_lists.py
index d7b0c47..b7b9aea 100644
--- a/anteater/src/get_lists.py
+++ b/anteater/src/get_lists.py
@@ -83,9 +83,13 @@ class GetLists(object):
file_name = os.path.basename(patch_file)
try:
binary_hash = (yl['binaries'][project][file_name])
+ return binary_hash
except KeyError:
- logger.error('Key Error processing binary hash values')
- return binary_hash
+ logger.info('No checksum entries found for {0}'.
+ format(file_name))
+ binary_hash = 'null'
+ return binary_hash
+
def file_audit_list(self, project):
project_list = False
diff --git a/anteater/src/patch_scan.py b/anteater/src/patch_scan.py
index 51b3430..f8ef225 100644
--- a/anteater/src/patch_scan.py
+++ b/anteater/src/patch_scan.py
@@ -89,7 +89,7 @@ def scan_patch(project, patch_file, binary_list, file_audit_list,
else:
logger.error('Non Whitelisted Binary file: {0}'.
format(patch_file))
- logger.error('Please submit patch with this hash:: {0}'.
+ logger.error('Submit patch with the following hash: {0}'.
format(hasher.hexdigest()))
failure = True
with open(reports_dir + "binaries-" + project + ".log", "a") \