[Reproducible-commits] [strip-nondeterminism] 10/10: dh_strip_nondeterminism: replace timestamps with most recent debian/changelog date

Andrew Ayer agwa at andrewayer.name
Sun Nov 16 23:16:06 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 36144aeda031ae453197482976641357100120df
Author: Andrew Ayer <agwa at andrewayer.name>
Date:   Sun Nov 16 15:11:36 2014 -0800

    dh_strip_nondeterminism: replace timestamps with most recent debian/changelog date
    
    Closes: #765299
---
 bin/dh_strip_nondeterminism | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/dh_strip_nondeterminism b/bin/dh_strip_nondeterminism
index 596c01f..4b15039 100755
--- a/bin/dh_strip_nondeterminism
+++ b/bin/dh_strip_nondeterminism
@@ -10,6 +10,7 @@ use strict;
 use File::Find;
 use Debian::Debhelper::Dh_Lib;
 use File::StripNondeterminism;
+use Date::Parse;
 
 =head1 SYNOPSIS
 
@@ -65,6 +66,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 	@nondeterministic_files=();
 	find(\&testfile,$tmp);
+	next unless @nondeterministic_files;
+
+	isnative($package); # Sets $dh{DATE} as a side-effect (TODO: do this more nicely)
+	$File::StripNondeterminism::canonical_time = str2time($dh{DATE});
 
 	foreach (@nondeterministic_files) {
 		my ($path, $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