summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-11-16 14:42:55 (GMT)
committerJohn (J5) Palmieri <johnp@redhat.com>2011-11-16 14:42:55 (GMT)
commitdf0546d96a56fba6869a5bf913dbc770ad36c35a (patch)
tree3d244a805ac04cf9c2c1670e47af649b21c7e03a
parent0dc81f9224bdf77820b3d6c417f661ca1caf40a1 (diff)
downloadfedoracommunity-df0546d96a56fba6869a5bf913dbc770ad36c35a.zip
fedoracommunity-df0546d96a56fba6869a5bf913dbc770ad36c35a.tar.gz
fedoracommunity-df0546d96a56fba6869a5bf913dbc770ad36c35a.tar.xz
correctly print out version
-rw-r--r--fedoracommunity/search/latest_version_mapper5
1 files changed, 4 insertions, 1 deletions
diff --git a/fedoracommunity/search/latest_version_mapper b/fedoracommunity/search/latest_version_mapper
index f8a4c97..29e927f 100644
--- a/fedoracommunity/search/latest_version_mapper
+++ b/fedoracommunity/search/latest_version_mapper
@@ -141,9 +141,12 @@ class Mapper(object):
if build.get('epoch', None) != None:
data['epoch'] = str(build['epoch'])
+ version_display = "%s:%s.%s" % (data['epoch'], data['version'], data['release'])
+ else:
+ version_display = "%s.%s" % (data['version'], data['release'])
latest_builds[t['name']] = data
- print " %s: %s" % (t['name'], ver)
+ print " %s: %s" % (t['name'], version_display)
if len(latest_builds) < 2:
# don't process doc if there is no real data