summaryrefslogtreecommitdiffstats
path: root/filter_plugins
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2016-05-26 14:30:37 -0300
committerDevan Goodwin <dgoodwin@redhat.com>2016-05-26 14:30:37 -0300
commit14b23a8b14636407143375cbac71b090663cee77 (patch)
treed81974e9cd0d4e2a2cef4b2bfef697835a0179aa /filter_plugins
parentc45ccc0ee879e93a4fd4304b4848595fa27014c5 (diff)
downloadopenshift-14b23a8b14636407143375cbac71b090663cee77.tar.gz
openshift-14b23a8b14636407143375cbac71b090663cee77.tar.bz2
openshift-14b23a8b14636407143375cbac71b090663cee77.tar.xz
openshift-14b23a8b14636407143375cbac71b090663cee77.zip
Get rpm installations functional again.
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/oo_filters.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter_plugins/oo_filters.py b/filter_plugins/oo_filters.py
index e7409bf22..554ef440f 100644
--- a/filter_plugins/oo_filters.py
+++ b/filter_plugins/oo_filters.py
@@ -885,11 +885,11 @@ class FilterModule(object):
# TODO: Do we need to make this actually convert v1.2.0-rc1 into 1.2.0-0.rc1
# We'd need to be really strict about how we build the RPM Version+Release
if version.startswith("v"):
- version = version.replace("v", "")
+ version = version[1:]
version = version.split('-')[0]
- if include_dash:
- version = "-" + version
+ if include_dash and not version.startswith("-"):
+ version = "-" + version
return version