From 8451154c8a5ba4000acead4f0fcff604391db373 Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Wed, 21 Mar 2018 14:08:25 +0100 Subject: [PATCH] TT#34318 Use dpkg-parsechangelog instead of 'head | sed' Change-Id: I54dadc79be469f88a2061fd305989be01a94ff3e --- debian/rules | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 0f4c3a7..b7b63de 100755 --- a/debian/rules +++ b/debian/rules @@ -2,8 +2,7 @@ # Uncomment this to turn on verbose mode. # export DH_VERBOSE=1 -DEBVERSION:=$(shell head -n 1 debian/changelog \ - | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') +DEBVERSION:=$(shell dpkg-parsechangelog -SVersion) ifneq ($(GIT_COMMIT),) export NGCP_VERSION := $(GIT_COMMIT)