[postgis-java] 03/04: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Sun Sep 24 21:19:48 UTC 2017


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

sebastic pushed a commit to branch master
in repository postgis-java.

commit c544ac65b454e18c8e804b9c17799a0d3acf60df
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Sep 24 23:10:30 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 01e03ba..980733f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ postgis-java (1:2.2.1-5) UNRELEASED; urgency=medium
 
   * Update dependencies for postgresql 10 & postgis 2.4.
   * Bump Standards-Version to 4.1.0, no changes.
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 24 Sep 2017 23:00:05 +0200
 
diff --git a/debian/rules b/debian/rules
index 7258f1c..e88572d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,9 @@
 
 export JAVA_HOME := /usr/lib/jvm/default-java
 
-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 $@ --parallel \

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



More information about the Pkg-grass-devel mailing list