[Reproducible-commits] [strip-nondeterminism] 01/10: Treat .war and .hpi files as JAR files

Andrew Ayer agwa at andrewayer.name
Sun Nov 16 23:16:05 UTC 2014


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

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

commit 79086e6b50c63d3e2840b47add7958bb7208bcd1
Author: Andrew Ayer <agwa at andrewayer.name>
Date:   Sat Oct 25 16:44:56 2014 -0700

    Treat .war and .hpi files as JAR files
    
    Closes: #765301
---
 lib/File/StripNondeterminism.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/File/StripNondeterminism.pm b/lib/File/StripNondeterminism.pm
index d20c2dc..4a496a2 100644
--- a/lib/File/StripNondeterminism.pm
+++ b/lib/File/StripNondeterminism.pm
@@ -55,7 +55,7 @@ sub get_normalizer_for_file {
 		return \&File::StripNondeterminism::handlers::gzip::normalize;
 	}
 	# jar
-	if (m/\.jar$/ && _get_file_type($_) =~ m/(Java|Zip) archive data/) {
+	if (m/\.(jar|war|hpi)$/ && _get_file_type($_) =~ m/(Java|Zip) archive data/) {
 		return \&File::StripNondeterminism::handlers::jar::normalize;
 	}
 	# javadoc

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