[Reproducible-commits] [debhelper] 01/32: Dh_Lib: isnative - pass -S to dpkg-parsechangelog
Mattia Rizzolo
mattia at debian.org
Fri Jan 15 00:38:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository debhelper.
commit d9975c415d9e992099f3cfe52b50be73be40357f
Author: Niels Thykier <niels at thykier.net>
Date: Sat Dec 26 20:14:54 2015 +0000
Dh_Lib: isnative - pass -S to dpkg-parsechangelog
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 4 ++--
debian/changelog | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 8a41f6f..b4d16ac 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -559,8 +559,8 @@ sub pkgfilename {
$isnative_changelog="debian/changelog";
}
# Get the package version.
- my $version=`dpkg-parsechangelog -l$isnative_changelog`;
- ($dh{VERSION})=$version=~m/Version:\s*(.*)/m;
+ my $version=`dpkg-parsechangelog -l$isnative_changelog -SVersion`;
+ chomp($dh{VERSION} = $version);
# Did the changelog parse fail?
if (! defined $dh{VERSION}) {
error("changelog parse failure");
diff --git a/debian/changelog b/debian/changelog
index 48a9c00..15268b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (9.20151225+unreleased) UNRELEASED; urgency=medium
+
+ * Dh_Lib.pm: Pass "-S" to dpkg-parsechangelog when requesting
+ the Version field.
+
+ -- Niels Thykier <niels at thykier.net> Sat, 26 Dec 2015 20:13:36 +0000
+
debhelper (9.20151225) unstable; urgency=medium
* dh_installmanpages: Fix call to getpackages. Thanks to
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git
More information about the Reproducible-commits
mailing list