[dh-r] 19/43: Use Dpkg::Changelog to get most recent time
Gordon Ball
chronitis-guest at moszumanska.debian.org
Thu Sep 15 13:45:34 UTC 2016
This is an automated email from the git hooks/post-receive script.
chronitis-guest pushed a commit to branch master
in repository dh-r.
commit 96c77b100472a049cf6032a6dd328d3c1c504810
Author: Gordon Ball <gordon at chronitis.net>
Date: Tue Sep 6 11:59:10 2016 +0200
Use Dpkg::Changelog to get most recent time
---
dh/R.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dh/R.pm b/dh/R.pm
index ae6fa4a..1267e7f 100644
--- a/dh/R.pm
+++ b/dh/R.pm
@@ -5,8 +5,9 @@ package Debian::Debhelper::Buildsystem::R;
use feature say;
use strict;
use Cwd;
+use Dpkg::Control;
use Dpkg::Control::Info;
-use Dpkg::Changelog::Debian;
+use Dpkg::Changelog::Parse;
use Debian::Debhelper::Dh_Lib;
use base 'Debian::Debhelper::Buildsystem';
@@ -132,11 +133,10 @@ sub install {
chomp(my $rapi_version = qx/dpkg-query -W -f='\${Provides}' r-base-core | grep -o 'r-api[^, ]*'/);
say "I: R API version: $rapi_version";
- chomp(my $changelog_time = qx/dpkg-parsechangelog | grep-dctrl -s Date -n ./);
+ my $changelog_time = Dpkg::Changelog::Parse::changelog_parse()->{Date};
say "I: Using built-time from d/changelog: $changelog_time";
-
$this->doit_in_sourcedir("mkdir", "-p", "$destdir/$libdir");
my @instargs;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/dh-r.git
More information about the debian-science-commits
mailing list