From 6b6dd902ca2c4fcbc2674bb1aa08e7ba1d20f1f2 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 18 Dec 2016 02:26:21 +0000 Subject: [PATCH] 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 709193406..b89725ced 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 Sun, 04 Dec 2016 21:16:06 +0100 diff --git a/debian/rules b/debian/rules index 0d433be0f..cae2cf64b 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')