[Reproducible-commits] [strip-nondeterminism] 01/01: two more javaproperties signatures

Chris West faux-guest at moszumanska.debian.org
Mon Feb 16 21:28:58 UTC 2015


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

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

commit a4e62c6c1cc9a6554daedd9a7635722d2215501d
Author: Chris West (Faux) <git at goeswhere.com>
Date:   Mon Feb 16 21:28:48 2015 +0000

    two more javaproperties signatures
---
 lib/File/StripNondeterminism/handlers/javaproperties.pm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/File/StripNondeterminism/handlers/javaproperties.pm b/lib/File/StripNondeterminism/handlers/javaproperties.pm
index 36d45af..6e3538e 100644
--- a/lib/File/StripNondeterminism/handlers/javaproperties.pm
+++ b/lib/File/StripNondeterminism/handlers/javaproperties.pm
@@ -27,10 +27,12 @@ use File::Basename;
 sub is_java_properties_file {
 	my ($filename) = @_;
 
-	# If this is a java properties file, '#Generated by Maven' or '#Build Number for ANT' should appear in first 1kb
+	# If this is a java properties file, '#Generated by Maven', '#Build Number for ANT',
+	# or other similar build-tool comment headers should appear in first 1kb
 	my $fh;
 	my $str;
-	return open($fh, '<', $filename) && read($fh, $str, 1024) && $str =~ /#Generated by Maven|#Build Number for ANT/;
+	return open($fh, '<', $filename) && read($fh, $str, 1024)
+		&& $str =~ /#Generated by Maven|#Build Number for ANT|#Generated by org.apache.felix.bundleplugin|#POM properties/;
 }
 
 sub normalize {

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