]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Now also packaging heat_keystoneclient_v2 in dist-packages/heat/plugins
authorThomas Goirand <thomas@goirand.fr>
Fri, 6 Jun 2014 14:55:45 +0000 (22:55 +0800)
committerThomas Goirand <thomas@goirand.fr>
Fri, 6 Jun 2014 14:57:27 +0000 (22:57 +0800)
Rewritten-From: 928edd55228d76f4d58838c47884b4dfe3bd26bb

xenial/debian/changelog
xenial/debian/rules

index f481a962d0ca8441d35ee1f64cb14154bf439f24..991b413f5275330b6cd6c1d0100c3b24f41cefda 100644 (file)
@@ -1,3 +1,9 @@
+heat (2014.1-8) unstable; urgency=medium
+
+  * Now also packaging heat_keystoneclient_v2 in dist-packages/heat/plugins.
+
+ -- Thomas Goirand <zigo@debian.org>  Fri, 06 Jun 2014 22:56:55 +0800
+
 heat (2014.1-7) unstable; urgency=medium
 
   * Now build-depends on openstack-pkg-tools >= 12~.
index 3d0fecb8d99cc2868fb17717b3eac2e0e86bfbe6..fba49743707e833e21dd7eefabd18ef5634acd15 100755 (executable)
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+PYTHONS:=$(shell pyversions -vr)
+#PYTHON3S:=$(shell py3versions -vr)
+
 include /usr/share/openstack-pkg-tools/pkgos.make
 export OSLO_PACKAGE_VERSION=$(VERSION)
 
@@ -32,6 +35,10 @@ override_dh_install:
        dh_install
        install -D -m 0640 etc/heat/heat.conf.sample $(CURDIR)/debian/heat-common/usr/share/heat-common/heat.conf
        cat $(CURDIR)/debian/keystone_authtoken >>$(CURDIR)/debian/heat-common/usr/share/heat-common/heat.conf
+       set -e && for pyvers in $(PYTHONS); do \
+               mkdir -p $(CURDIR)/debian/python-heat/usr/lib/python$$pyvers/dist-packages/heat/plugins ; \
+               cp -rf contrib/heat_keystoneclient_v2/heat_keystoneclient_v2 $(CURDIR)/debian/python-heat/usr/lib/python$$pyvers/dist-packages/heat/plugins ; \
+        done
 
 override_dh_auto_build:
        dh_auto_build