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)