[Reproducible-commits] [strip-nondeterminism] 01/04: dh_s_nd: use get_source_date_epoch() to get canonical time
Andrew Ayer
agwa at andrewayer.name
Sat Aug 29 19:29:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
agwa-guest pushed a commit to branch debian
in repository strip-nondeterminism.
commit 62cd4ebb3e696427245eba681f318c1fe7af0d78
Author: Andrew Ayer <agwa at andrewayer.name>
Date: Sat Aug 29 12:22:23 2015 -0700
dh_s_nd: use get_source_date_epoch() to get canonical time
Fixes 'Use of uninitialized value in lc at (eval 11) line 15' error,
since debhelper's isnative() no longer sets $dh{DATE} as a side-effect
(which was a total hack anyways).
---
bin/dh_strip_nondeterminism | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/dh_strip_nondeterminism b/bin/dh_strip_nondeterminism
index 86614a9..adebce5 100755
--- a/bin/dh_strip_nondeterminism
+++ b/bin/dh_strip_nondeterminism
@@ -72,8 +72,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
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});
+ $File::StripNondeterminism::canonical_time = get_source_date_epoch();
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