From 21eba438574c13ecd49119ab9a7df882e517f566 Mon Sep 17 00:00:00 2001 From: lhinds Date: Thu, 16 Nov 2017 17:03:43 +0000 Subject: Implements full path for hash checks of binaries Previously the hash check would work only against the filename, and not using the relative path. This change uses the whole relative path to allow indentical filenames in different folder locations within the same repo. Also updated the generate-sha256.py script to introduce the same changes. JIRA: RELENG-303 Change-Id: I3a59e015b708eb5a966690b9839e5e15ac5b64c7 Signed-off-by: lhinds --- anteater/src/get_lists.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'anteater/src/get_lists.py') diff --git a/anteater/src/get_lists.py b/anteater/src/get_lists.py index ff63442..4eb1d3f 100644 --- a/anteater/src/get_lists.py +++ b/anteater/src/get_lists.py @@ -86,9 +86,8 @@ class GetLists(object): def binary_hash(self, project, patch_file): self.load_project_exception_file(ml.get('project_exceptions'), project) - file_name = os.path.basename(patch_file) try: - binary_hash = (ml['binaries'][project][file_name]) + binary_hash = (ml['binaries'][project][patch_file]) return binary_hash except KeyError: binary_hash = 'null' -- cgit 1.2.3-korg