X-Git-Url: https://git.ao2.it/winfreed.git/blobdiff_plain/9f988faf31dbe3d8cb43f492690ab206577eef69..5217f1e4d670c94164a15ffe7f46dfa1c6ea738d:/winfreed.py?ds=sidebyside diff --git a/winfreed.py b/winfreed.py index 6051d24..ca3cd32 100755 --- a/winfreed.py +++ b/winfreed.py @@ -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 @@ -72,9 +74,9 @@ def download_file(src_url, dest_dir): response = urllib2.urlopen(src_url) except Exception, e: if hasattr(e, 'reason'): - print 'Download failed. Reason: ', e.reason + print 'Downloading from', src_url, 'failed. Reason: ', e.reason elif hasattr(e, 'code'): - print 'Download failed. Error code: ', e.code + print 'Downloading from', src_url, 'failed. Error code: ', e.code return # get the final URL after possible redirect have been followed