From 5441bf6d822ed743b756af148a9ea74024c795a0 Mon Sep 17 00:00:00 2001 From: lhinds Date: Thu, 14 Sep 2017 15:39:48 +0100 Subject: 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 --- anteater/src/get_lists.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'anteater/src/get_lists.py') 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']) -- cgit 1.2.3-korg