[med-svn] [snap-aligner] 03/04: Do not parse d/changelog

Andreas Tille tille at debian.org
Thu Dec 21 08:54:12 UTC 2017


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

tille pushed a commit to branch master
in repository snap-aligner.

commit eb65f0fd42ec9d543a9e519eafb5a2e99a9a0d3a
Author: Andreas Tille <tille at debian.org>
Date:   Thu Dec 21 09:38:49 2017 +0100

    Do not parse d/changelog
---
 debian/changelog | 1 +
 debian/rules     | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 65e8e01..c9803b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ snap-aligner (1.0~beta.18+dfsg-2) UNRELEASED; urgency=medium
   * Restrict package to 64 bit architectures only
     Closes: #860652
   * Standards-Version: 4.1.2
+  * Do not parse d/changelog
 
  -- Andreas Tille <tille at debian.org>  Thu, 21 Dec 2017 09:16:04 +0100
 
diff --git a/debian/rules b/debian/rules
index 6930b3d..52a269d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,8 +2,9 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
-DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+include /usr/share/dpkg/default.mk
+VERSION        := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/+dfsg//')
+
 CXXFLAGS := -std=gnu++98
 export CXXFLAGS
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/snap-aligner.git



More information about the debian-med-commit mailing list