winfreed.py: print version in the 'show' command
[winfreed.git] / winfreed.py
index 6051d24..6a5e7b5 100755 (executable)
@@ -63,6 +63,8 @@ def process_all(path, cb):
 def show(pkg):
     print 'Package:  ', pkg['package_name']
     print 'Program:  ', pkg['name']
+    if pkg.has_key('version'):
+        print 'Version:  ', pkg['version']
     print 'Homepage: ', pkg['homepage']
     print