diff options
Diffstat (limited to 'pbr/packaging.py')
-rw-r--r-- | pbr/packaging.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py index bbc8d38..97f95a8 100644 --- a/pbr/packaging.py +++ b/pbr/packaging.py @@ -628,7 +628,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) |