Commit d96687d7 authored by Guillem Jover's avatar Guillem Jover Committed by Chris Lamb

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's avatarGuillem Jover <guillem@debian.org>
Signed-off-by: Chris Lamb's avatarChris Lamb <lamby@debian.org>
parent 0f98d4ba
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment