[Pkg-virtualbox-commits] [virtualbox-ext-pack] 02/04: d/rules: Rather than using dpkg-parsechangelog, use DEB_VERSION_UPSTREAM.

Unit 193 unit193-guest at moszumanska.debian.org
Sat Jul 8 22:33:24 UTC 2017


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

unit193-guest pushed a commit to branch master
in repository virtualbox-ext-pack.

commit cb7bb7b475264a2d8d6b56d5d8652b5f8ba3cdd7
Author: Unit 193 <unit193 at ubuntu.com>
Date:   Sat Jul 8 18:31:53 2017 -0400

    d/rules: Rather than using dpkg-parsechangelog, use DEB_VERSION_UPSTREAM.
---
 debian/rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index 846a758..e5c11be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/default.mk
 VERSION=5.1.22
+
 %:
 	dh  $@
 
@@ -8,12 +10,11 @@ override_dh_clean:
 	debconf-updatepo
 	dh_clean
 
-EXT_PACK_VERSION=$(shell dpkg-parsechangelog -Sversion | cut -d - -f 1)
 #VIRTUALBOX_VERSION=$(shell dpkg-query --show --showformat='$${version}' virtualbox | cut -f1 -d "-")
 
 override_dh_gencontrol:
 	dh_gencontrol -- \
-		-Vvirtualbox:Version=$(EXT_PACK_VERSION)-dfsg-0~ -Vvirtualbox:nextVersion=$(EXT_PACK_VERSION)-dfsg-z
+		-Vvirtualbox:Version=$(DEB_VERSION_UPSTREAM)-dfsg-0~ -Vvirtualbox:nextVersion=$(EXT_PACK_VERSION)-dfsg-z
 
 tarball:
 	mkdir virtualbox-ext-pack_$(VERSION)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox-ext-pack.git



More information about the Pkg-virtualbox-commits mailing list