[osm-gps-map] 01/02: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Wed Sep 27 13:24:29 UTC 2017


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

sebastic pushed a commit to branch master
in repository osm-gps-map.

commit 84145af61488ae0b7b84071112eadd74651e54b8
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Sep 27 15:24:11 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 227a771..c19ed0a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ osm-gps-map (1.1.0-2) UNRELEASED; urgency=medium
 
   * Change priority from extra to optional.
   * Bump Standards-Version to 4.1.0, changes: priority.
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
 
  -- Ross Gammon <rossgammon at mail.dk>  Sun, 24 Sep 2017 13:17:44 +0200
 
diff --git a/debian/rules b/debian/rules
index 348897a..38a12b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,9 @@ export export V=1
 export DEB_CFLAGS_MAINT_APPEND = -UGDK_DISABLE_DEPRECATED
 export DEB_BUILD_HARDENING=1
 
-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/\+.*//')
 
 override_dh_auto_configure:
 	dh_auto_configure -- \

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



More information about the Pkg-grass-devel mailing list