[Reproducible-commits] [debbindiff] 04/06: Filter archive name from readelf output

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Jun 24 12:45:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository debbindiff.

commit 7e9016963c7270f8850194f2143d7dbc952d1396
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Jun 24 12:39:47 2015 +0000

    Filter archive name from readelf output
---
 debbindiff/comparators/elf.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debbindiff/comparators/elf.py b/debbindiff/comparators/elf.py
index 64cfebe..758ee2a 100644
--- a/debbindiff/comparators/elf.py
+++ b/debbindiff/comparators/elf.py
@@ -34,6 +34,8 @@ class Readelf(Command):
         return []
 
     def filter(self, line):
+        # we don't care about the name of the archive
+        line = re.sub('^File: %s\(' % re.escape(self.path), 'File: lib.a(', line)
         # the full path can appear in the output, we need to remove it
         return line.replace(self.path, os.path.basename(self.path))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git



More information about the Reproducible-commits mailing list