Fixed export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog -S Version | sed -e...
authorThomas Goirand <thomas@goirand.fr>
Fri, 31 Jul 2015 21:43:25 +0000 (21:43 +0000)
committerThomas Goirand <thomas@goirand.fr>
Fri, 31 Jul 2015 21:47:03 +0000 (21:47 +0000)
Rewritten-From: 083ff5b2492710e7e7995f619ffc4e3e581ddaa2

xenial/debian/rules

index 38f9c69c3e2946a1a9cafb86f4cc7c61e9ffe27f..7f27d99b93744daf7154932ba3bafbf3ac72aaa1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/openstack-pkg-tools/pkgos.make
-export OSLO_PACKAGE_VERSION=$(VERSION)
+export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog -S Version | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/')
 
 PYTHONS:=$(shell pyversions -vr)