[Git][reproducible-builds/diffoscope][master] Don't include the filename in llvm-bcanalyzer results. (Closes: #905598)
Chris Lamb
gitlab at salsa.debian.org
Tue Aug 7 03:04:34 CEST 2018
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
1599b01d by Chris Lamb at 2018-08-07T01:04:19Z
Don't include the filename in llvm-bcanalyzer results. (Closes: #905598)
- - - - -
1 changed file:
- diffoscope/comparators/llvm.py
Changes:
=====================================
diffoscope/comparators/llvm.py
=====================================
--- a/diffoscope/comparators/llvm.py
+++ b/diffoscope/comparators/llvm.py
@@ -32,6 +32,11 @@ class LlvmBcAnalyzer(Command):
def cmdline(self):
return ['llvm-bcanalyzer', '-dump', self.path]
+ def filter(self, line):
+ if line.decode('utf-8', 'ignore').startswith('Summary of '):
+ return 'Summary:'
+ return line
+
class LlvmBcDisassembler(Command):
@tool_required('llvm-dis')
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/1599b01d1cc7f9aef47131ecb86b2db49b0154c1
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/1599b01d1cc7f9aef47131ecb86b2db49b0154c1
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20180807/a473bfe7/attachment.html>
More information about the rb-commits
mailing list