]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fixed OSLO_PACKAGE_VERSION for last PBR version.
authorThomas Goirand <zigo@debian.org>
Fri, 17 Jul 2015 13:50:56 +0000 (15:50 +0200)
committerThomas Goirand <zigo@debian.org>
Fri, 17 Jul 2015 13:50:56 +0000 (15:50 +0200)
debian/changelog
debian/rules

index 9bd204199f6676786fbc7633351fc1374de73a4e..c6ec1f15d0583fe8103299e8fe1f90025382b443 100644 (file)
@@ -2,6 +2,7 @@ cinder (1:7.0.0~b1-1) experimental; urgency=medium
 
   * New upstream release.
   * Updated (build-)depends for this release.
+  * Fixed OSLO_PACKAGE_VERSION for last PBR version.
 
  -- Thomas Goirand <zigo@debian.org>  Fri, 10 Jul 2015 09:41:59 +0200
 
index 733c176f380387d56a7e20b97900591787308134..bc51b8471b550070d9f6e2fc96726d74b9686838 100755 (executable)
@@ -2,7 +2,7 @@
 
 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/')
 
 %:
        dh $@  --with python2,systemd