winfreed.py: print version in the 'show' command
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 16 Jun 2012 10:11:23 +0000 (12:11 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 16 Jun 2012 10:11:23 +0000 (12:11 +0200)
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