summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pbr/packaging.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index 815f060..b72bd89 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -624,7 +624,9 @@ def get_version(package_name, pre_version=None):
to make a source tarball from a fork of our repo with additional tags in it
that they understand and desire the results of doing that.
"""
- version = os.environ.get("OSLO_PACKAGE_VERSION", None)
+ version = os.environ.get(
+ "PBR_VERSION",
+ os.environ.get("OSLO_PACKAGE_VERSION", None))
if version:
return version
version = _get_version_from_pkg_info(package_name)