Blame 0001-remove-requirement-on-pbr.patch

5c5170d
From 0e7a3899e182eae8248743e9a11f6413c4733704 Mon Sep 17 00:00:00 2001
5c5170d
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
5c5170d
Date: Wed, 9 Oct 2013 12:38:40 +0100
5c5170d
Subject: [PATCH] remove requirement on pbr
5c5170d
5c5170d
---
5c5170d
 swift/__init__.py |    9 ++-------
5c5170d
 1 files changed, 2 insertions(+), 7 deletions(-)
5c5170d
5c5170d
diff --git a/swift/__init__.py b/swift/__init__.py
5c5170d
index 7e8fb7b..d7a4012 100644
5c5170d
--- a/swift/__init__.py
5c5170d
+++ b/swift/__init__.py
5c5170d
@@ -16,13 +16,8 @@
5c5170d
 import os
5c5170d
 import gettext
5c5170d
 
5c5170d
-import pbr.version
5c5170d
-
5c5170d
-
5c5170d
-_version_info = pbr.version.VersionInfo('swift')
5c5170d
-__version__ = _version_info.release_string()
5c5170d
-__canonical_version__ = _version_info.version_string()
5c5170d
-
5c5170d
+__version__ = "%RPMVERSION%-%RPMRELEASE%"
5c5170d
+__canonical_version__ = "%RPMVERSION%"
5c5170d
 
5c5170d
 _localedir = os.environ.get('SWIFT_LOCALEDIR')
5c5170d
 _t = gettext.translation('swift', localedir=_localedir, fallback=True)