[Reproducible-commits] [debbindiff] 07/07: Also remove 'Last modified' and 'MD5 checksum' lines from javap output
Jérémy Bobbio
lunar at moszumanska.debian.org
Wed Jun 24 11:52:25 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 41f8402abb13c5ce0b7255a0d96031216cd3dab4
Author: Jérémy Bobbio <lunar at debian.org>
Date: Wed Jun 24 11:51:50 2015 +0000
Also remove 'Last modified' and 'MD5 checksum' lines from javap output
---
debbindiff/comparators/java.py | 2 +-
tests/data/class_expected_diff | 14 +-------------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/debbindiff/comparators/java.py b/debbindiff/comparators/java.py
index b0266ad..24b864e 100644
--- a/debbindiff/comparators/java.py
+++ b/debbindiff/comparators/java.py
@@ -34,7 +34,7 @@ class Javap(Command):
return ['javap', '-verbose', '-constants', '-s', '-l', '-private', self.path]
def filter(self, line):
- if re.match(r'^Classfile %s$' % re.escape(self.real_path), line):
+ if re.match(r'^(Classfile %s$| Last modified | MD5 checksum )' % re.escape(self.real_path), line):
return ''
return line
diff --git a/tests/data/class_expected_diff b/tests/data/class_expected_diff
index 789d56f..3e9ed43 100644
--- a/tests/data/class_expected_diff
+++ b/tests/data/class_expected_diff
@@ -1,16 +1,4 @@
-@@ -1,9 +1,9 @@
-- Last modified 24 juin 2015; size 255 bytes
-- MD5 checksum b21793a1a687017fda223dba41bfcbf2
-+ Last modified 24 juin 2015; size 254 bytes
-+ MD5 checksum 01a9e334bb654f7cde2e4cae29f92a99
- Compiled from "Test.java"
- class Test
- SourceFile: "Test.java"
- minor version: 0
- major version: 50
- flags: ACC_SUPER
- Constant pool:
-@@ -38,12 +38,12 @@
+@@ -36,12 +36,12 @@
public static int main(java.lang.String[]);
Signature: ([Ljava/lang/String;)I
flags: ACC_PUBLIC, ACC_STATIC
--
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