[Reproducible-commits] [debbindiff] 01/01: Skip line with temporary path to class file

Reiner Herrmann deki-guest at moszumanska.debian.org
Thu May 21 18:28:51 UTC 2015


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

deki-guest pushed a commit to branch master
in repository debbindiff.

commit 56a8077becf066d520b03cd8151680d1a4f2f6a7
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Thu May 21 20:27:12 2015 +0200

    Skip line with temporary path to class file
---
 debbindiff/comparators/java.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debbindiff/comparators/java.py b/debbindiff/comparators/java.py
index 8fbf125..42cfa7a 100644
--- a/debbindiff/comparators/java.py
+++ b/debbindiff/comparators/java.py
@@ -17,6 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with debbindiff.  If not, see <http://www.gnu.org/licenses/>.
 
+import re
 from debbindiff import tool_required
 from debbindiff.comparators.utils import binary_fallback, Command
 from debbindiff.difference import Difference
@@ -27,6 +28,11 @@ class Javap(Command):
     def cmdline(self):
         return ['javap', '-verbose', '-constants', '-s', '-l', '-private', self.path]
 
+    def filter(self, line):
+        if re.match(r'^Classfile %s$' % self.path, line):
+            return ''
+        return line
+
 @binary_fallback
 def compare_class_files(path1, path2, source=None):
     difference = Difference.from_command(Javap, path1, path2)

-- 
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