aboutsummaryrefslogtreecommitdiffstats
path: root/anteater/src/get_lists.py
diff options
context:
space:
mode:
authorlhinds <lhinds@redhat.com>2017-09-14 15:39:48 +0100
committerlhinds <lhinds@redhat.com>2017-09-14 15:43:38 +0100
commit5441bf6d822ed743b756af148a9ea74024c795a0 (patch)
treee4f4549523101cb03621552c5b9884f44b88058b /anteater/src/get_lists.py
parentb3c29549dd5d1048604f45222981d343d0dde09f (diff)
Introduce ignore list for content scans
Anteater was reporting fails on files which are documents and so harmless (for example an rst file) This patch introduces a file_ignore list in master_list.yaml Change-Id: I87c73c80a36114a7df9e1da47d89ca14e3bf668a Signed-off-by: lhinds <lhinds@redhat.com>
Diffstat (limited to 'anteater/src/get_lists.py')
-rw-r--r--anteater/src/get_lists.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/anteater/src/get_lists.py b/anteater/src/get_lists.py
index fd80a6a..17de7cb 100644
--- a/anteater/src/get_lists.py
+++ b/anteater/src/get_lists.py
@@ -87,7 +87,6 @@ class GetLists(object):
binary_hash = (yl['binaries'][project][file_name])
return binary_hash
except KeyError:
- logger.info('No checksum entries found for %s', file_name)
binary_hash = 'null'
return binary_hash
@@ -134,6 +133,13 @@ class GetLists(object):
return master_list, project_list_re
+ def file_ignore(self):
+ try:
+ file_ignore = (yl['file_ignore'])
+ except KeyError:
+ logger.error('Key Error processing file_ignore list values')
+ return file_ignore
+
def licence_extensions(self):
try:
licence_extensions = (yl['licence']['licence_ext'])