]> review.fuel-infra Code Review - openstack-build/horizon-build.git/commitdiff
Added fix-package-version-detection-when-building-doc.patch
authorThomas Goirand <thomas@goirand.fr>
Fri, 17 May 2013 08:18:36 +0000 (08:18 +0000)
committerThomas Goirand <thomas@goirand.fr>
Fri, 17 May 2013 08:18:36 +0000 (08:18 +0000)
Rewritten-From: 03942ef3e7f691d63b986eb098a6d2794e44c6d2

xenial/debian/patches/fix-package-version-detection-when-building-doc.patch [new file with mode: 0644]
xenial/debian/patches/series

diff --git a/xenial/debian/patches/fix-package-version-detection-when-building-doc.patch b/xenial/debian/patches/fix-package-version-detection-when-building-doc.patch
new file mode 100644 (file)
index 0000000..55f91ca
--- /dev/null
@@ -0,0 +1,25 @@
+Description: Fixes version detection when building docs
+Author: Thomas Goirand <zigo@debian.org>
+Forwarded: no
+Last-Update: 2013-05-17
+
+--- horizon-2013.1.1.orig/openstack_dashboard/openstack/common/version.py
++++ horizon-2013.1.1/openstack_dashboard/openstack/common/version.py
+@@ -19,6 +19,7 @@ Utilities for consuming the version from
+ """
+ import pkg_resources
++import os
+ class VersionInfo(object):
+@@ -54,6 +55,9 @@ class VersionInfo(object):
+         if self.release is None:
+             self.release = self._get_version_from_pkg_resources()
++        if self.release is None:
++            self.release = os.environ.get("OSLO_PACKAGE_VERSION", None)
++
+         return self.release
+     def version_string(self):
index 89e6f35a4069cfbeda41ba9e693b36ab17a878d7..877920a8c92a994b828c53011671acf13aadc781 100644 (file)
@@ -1,2 +1,3 @@
 fix-dashboard-django-wsgi.patch
 fix-dashboard-manage.patch
+fix-package-version-detection-when-building-doc.patch