[linux] 01/01: debian/rules: Use dpkg-parsechangelog -S option to select fields

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Dec 18 02:26:50 UTC 2016


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

benh pushed a commit to branch sid
in repository linux.

commit 6b6dd902ca2c4fcbc2674bb1aa08e7ba1d20f1f2
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun Dec 18 02:26:21 2016 +0000

    debian/rules: Use dpkg-parsechangelog -S option to select fields
---
 debian/changelog | 1 +
 debian/rules     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7091934..b89725c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -169,6 +169,7 @@ linux (4.8.15-1) UNRELEASED; urgency=medium
   * debian/rules.real: Exclude *.pyc from featureset diffs
   * debian/control: Fix build-dependency on flex to work with new versions that
     have M-A: foreign
+  * debian/rules: Use dpkg-parsechangelog -S option to select fields
 
  -- Uwe Kleine-König <ukleinek at debian.org>  Sun, 04 Dec 2016 21:16:06 +0100
 
diff --git a/debian/rules b/debian/rules
index 0d433be..cae2cf6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,8 +2,8 @@
 
 SHELL    := sh -e
 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p')
-VERSION := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p')
+SOURCE := $(shell dpkg-parsechangelog -SSource)
+VERSION := $(shell dpkg-parsechangelog -SVersion)
 VERSION_UPSTREAM := $(shell echo "$(VERSION)" | sed -e 's,-[^-]*$$,,')
 VERSION_BINNMU := $(shell echo "$(VERSION)" | sed -ne 's,.*+b\(.*\)$$,\1,p')
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list