[Reproducible-commits] [strip-nondeterminism] 01/01: Add support for pk3 and dz files
Andrew Ayer
agwa at andrewayer.name
Tue Jan 6 21:44:26 UTC 2015
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 1383c89c2e8249829b2399864d120263d40bd1f5
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Tue Jan 6 13:43:39 2015 -0800
Add support for pk3 and dz files
pk3 files are just renamed zip files. And dz files are gzip files
generated by dictzip which contain some additional data in the header,
but are completely compatible to gzip.
Closes: #765305
---
lib/File/StripNondeterminism.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/File/StripNondeterminism.pm b/lib/File/StripNondeterminism.pm
index 02d656c..f269b7d 100644
--- a/lib/File/StripNondeterminism.pm
+++ b/lib/File/StripNondeterminism.pm
@@ -53,7 +53,7 @@ sub get_normalizer_for_file {
return \&File::StripNondeterminism::handlers::ar::normalize;
}
# gzip
- if (m/\.gz$/ && _get_file_type($_) =~ m/gzip compressed data/) {
+ if (m/\.(gz|dz)$/ && _get_file_type($_) =~ m/gzip compressed data/) {
return \&File::StripNondeterminism::handlers::gzip::normalize;
}
# jar
@@ -73,7 +73,7 @@ sub get_normalizer_for_file {
return \&File::StripNondeterminism::handlers::pomproperties::normalize;
}
# zip
- if (m/\.zip$/ && _get_file_type($_) =~ m/Zip archive data/) {
+ if (m/\.(zip|pk3)$/ && _get_file_type($_) =~ m/Zip archive data/) {
return \&File::StripNondeterminism::handlers::zip::normalize;
}
return undef;
--
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