[routino] 02/04: Fix debian-rules-parses-dpkg-parsechangelog lintian issues.

Bas Couwenberg sebastic at debian.org
Sun Jun 18 16:59:46 UTC 2017


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

sebastic pushed a commit to branch master
in repository routino.

commit 8fe0e5a752fed15baa0d8cb62a2a6cb2c7fd2278
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sun Jun 18 18:37:36 2017 +0200

    Fix debian-rules-parses-dpkg-parsechangelog lintian issues.
---
 debian/changelog | 1 +
 debian/rules     | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e7d3fd1..b97cbb2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 routino (3.2-1) unstable; urgency=medium
 
   * Bump Standards-Version to 4.0.0, no changes.
+  * Fix debian-rules-parses-dpkg-parsechangelog lintian issues.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 18 Jun 2017 18:22:51 +0200
 
diff --git a/debian/rules b/debian/rules
index 78cbd7c..5b904c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,9 +9,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=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
 
-BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
+UPSTREAM_VERSION=$(shell echo ${DEB_VERSION_UPSTREAM} | sed -e 's/\+.*//')
+
+BUILD_DATE=$(shell echo ${SOURCE_DATE_EPOCH} | LC_ALL=C date -u "+%d %B %Y" -f -)
 
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 

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



More information about the Pkg-grass-devel mailing list