[librttopo] 04/05: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Sun Jun 25 16:57:14 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastic pushed a commit to branch master
in repository librttopo.

commit 8d8cb39378d42493c79cabb07d19ef8fa38f77a9
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Jun 25 18:40:42 2017 +0200

    Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
 debian/changelog | 1 +
 debian/rules     | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 46c12cd..0c1f05c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ librttopo (1.1.0~rc0-1~exp3) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.0.0, no changes.
   * Add autopkgtest to test installability.
   * Enable PIE hardening buildflags.
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 25 Jun 2017 18:39:13 +0200
 
diff --git a/debian/rules b/debian/rules
index c0f4cba..bde645e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,9 @@
 # Enable hardening build flags
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+include /usr/share/dpkg/pkg-info.mk
+
+UPSTREAM_VERSION := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//')
 
 %:
 	dh $@ \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/librttopo.git



More information about the Pkg-grass-devel mailing list