[Git][reproducible-builds/strip-nondeterminism][master] Remove old Date::Parse backwards-compatibility code. (Closes: #910257)

Chris Lamb gitlab at salsa.debian.org
Thu Oct 4 11:28:32 CEST 2018


Chris Lamb pushed to branch master at Reproducible Builds / strip-nondeterminism


Commits:
d96687d7 by Guillem Jover at 2018-10-04T09:28:21Z
Remove old Date::Parse backwards-compatibility code. (Closes: #910257)

The required debhelper version providing the get_source_date_epoch() function
is available since Debian stable (stretch). Let's remove this code and the
unnecessary dependency.

Signed-off-by: Guillem Jover <guillem at debian.org>
Signed-off-by: Chris Lamb <lamby at debian.org>

- - - - -


1 changed file:

- bin/dh_strip_nondeterminism


Changes:

=====================================
bin/dh_strip_nondeterminism
=====================================
@@ -11,7 +11,6 @@ use B;
 use File::Find;
 use Debian::Debhelper::Dh_Lib;
 use File::StripNondeterminism;
-use Date::Parse;
 
 =head1 SYNOPSIS
 
@@ -81,13 +80,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 	find(\&testfile,$tmp);
 	next unless @nondeterministic_files;
 
-	$File::StripNondeterminism::canonical_time
-	  = eval { get_source_date_epoch() };
-	if (not defined $File::StripNondeterminism::canonical_time) {
-		# Hack for old versions of debhelper
-		isnative($package); # Sets $dh{DATE} as a side-effect
-		$File::StripNondeterminism::canonical_time = str2time($dh{DATE});
-	}
+	$File::StripNondeterminism::canonical_time = get_source_date_epoch();
 
 	verbose_print("Using $File::StripNondeterminism::canonical_time as canonical time");
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/commit/d96687d7686efeca77a62fd29324ffb0ec94d7cb

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/strip-nondeterminism/commit/d96687d7686efeca77a62fd29324ffb0ec94d7cb
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20181004/c8271c51/attachment.html>


More information about the rb-commits mailing list