[Reproducible-commits] [debbindiff] 05/06: Filter archive name from objdump 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 bf81114f86dadfcb1a9950b82363925bab77d08a
Author: Jérémy Bobbio <lunar at debian.org>
Date: Wed Jun 24 12:43:47 2015 +0000
Filter archive name from objdump output
---
debbindiff/comparators/elf.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/debbindiff/comparators/elf.py b/debbindiff/comparators/elf.py
index 758ee2a..01f345b 100644
--- a/debbindiff/comparators/elf.py
+++ b/debbindiff/comparators/elf.py
@@ -53,6 +53,8 @@ class ObjdumpDisassemble(Command):
return ['objdump', '--disassemble', '--full-contents', self.path]
def filter(self, line):
+ # we don't care about the name of the archive
+ line = re.sub('^In archive %s:' % re.escape(self.path), 'In archive:', 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