[PATCH v2 2/5][linux-signed][Unstable][Eoan] UBUNTU: Use dpkg-parsechangelog -S instead of piping to grep/cut

dann frazier dann.frazier at canonical.com
Tue Jun 4 22:56:22 UTC 2019


Signed-off-by: dann frazier <dann.frazier at canonical.com>
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 26a367f..22cec29 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,8 +7,8 @@ DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
 # Work out the source package name and version.  We assume the source package
 # is the name of this package with -signed stripped.  The version is identical
 # to this package less any rebuild suffic (+signedN).
-src_package := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Source: | cut -d ' ' -f 2 | sed -e 's/-signed//')
-src_fullversion = $(shell LC_ALL=C dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
+src_package := $(shell LC_ALL=C dpkg-parsechangelog -S Source | sed -e 's/-signed//')
+src_fullversion = $(shell LC_ALL=C dpkg-parsechangelog -S Version)
 src_version = $(shell echo $(src_fullversion) | sed -e 's/+signed[0-9]*.*//')
 src_abi = $(shell echo "$(src_version)" | sed -ne 's/\([0-9]*\.[0-9]*\.[0-9]*\-[0-9]*\)\..*/\1/p')
 
-- 
2.20.1




More information about the kernel-team mailing list