]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
export OSLO_PACKAGE_VERSION now compatible with Trusty version of dpkg.
authorThomas Goirand <thomas@goirand.fr>
Wed, 20 Jan 2016 10:47:57 +0000 (10:47 +0000)
committerThomas Goirand <thomas@goirand.fr>
Wed, 20 Jan 2016 10:47:57 +0000 (10:47 +0000)
debian/changelog
debian/rules

index 12f94b7ac74e817809f66c1196b6a8c7a25f46b7..b7efa1f5c2d853d88776da74453e8a20c446cbbe 100644 (file)
@@ -7,6 +7,7 @@ neutron (1:8.0.0~b2-1) experimental; urgency=medium
   * Did some cleanups in debian/rules.
   * Using oslo-config-generator to generate config files, as upstream moved to
     use that as well.
+  * export OSLO_PACKAGE_VERSION now compatible with Trusty version of dpkg.
 
  -- Thomas Goirand <zigo@debian.org>  Fri, 04 Dec 2015 09:03:42 +0100
 
index 88692d4a61f76d798b17f5e8b243aa949211702c..2dbe9f8b2daaa9d620f5b9f563c7a310dfed1917 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 include /usr/share/openstack-pkg-tools/pkgos.make
-export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog -S Version | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/')
+export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f2 | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/' | head -n 1)
 
 PYTHONS:=$(shell pyversions -vr)