[Reproducible-commits] [strip-nondeterminism] 04/04: Support Android .apk files with the JAR normalizer.

Chris Lamb chris at chris-lamb.co.uk
Sun Jul 24 22:15:57 UTC 2016


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

lamby pushed a commit to branch master
in repository strip-nondeterminism.

commit e7760c9dce2bfdb5476ab11ae87b7549161e2019
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jul 24 23:15:50 2016 +0100

    Support Android .apk files with the JAR normalizer.
---
 lib/File/StripNondeterminism.pm |   2 +-
 t/fixtures/jar/android.apk.in   | Bin 0 -> 15775 bytes
 t/fixtures/jar/android.apk.out  |   1 +
 3 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/File/StripNondeterminism.pm b/lib/File/StripNondeterminism.pm
index 08adddc..ab7de01 100644
--- a/lib/File/StripNondeterminism.pm
+++ b/lib/File/StripNondeterminism.pm
@@ -63,7 +63,7 @@ sub get_normalizer_for_file {
 		return \&File::StripNondeterminism::handlers::gzip::normalize;
 	}
 	# jar
-	if (m/\.(jar|war|hpi)$/ && _get_file_type($_) =~ m/(Java|Zip) archive data/) {
+	if (m/\.(jar|war|hpi|apk)$/ && _get_file_type($_) =~ m/(Java|Zip) archive data/) {
 		return \&File::StripNondeterminism::handlers::jar::normalize;
 	}
 	# javadoc
diff --git a/t/fixtures/jar/android.apk.in b/t/fixtures/jar/android.apk.in
new file mode 100644
index 0000000..cc0fb74
Binary files /dev/null and b/t/fixtures/jar/android.apk.in differ
diff --git a/t/fixtures/jar/android.apk.out b/t/fixtures/jar/android.apk.out
new file mode 120000
index 0000000..00bb253
--- /dev/null
+++ b/t/fixtures/jar/android.apk.out
@@ -0,0 +1 @@
+android.apk.in
\ No newline at end of file

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



More information about the Reproducible-commits mailing list