From 9be83810c6c96486cfc925d0cd7ea49cdf030220 Mon Sep 17 00:00:00 2001 From: Dennis Kaarsemaker Date: Sat, 26 Jan 2008 15:23:20 +0100 Subject: [PATCH] show sourcepackage in \!info --- Encyclopedia/packages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Encyclopedia/packages.py b/Encyclopedia/packages.py index 1773fdf..d8de2ba 100644 --- a/Encyclopedia/packages.py +++ b/Encyclopedia/packages.py @@ -99,8 +99,8 @@ class Apt: archs = '' if maxp2['Architecture'] not in ('all','any'): archs = ' (Only available for %s)' % maxp2['Architecture'] - return("%s: %s. In component %s, is %s. Version %s (%s), package size %s kB, installed size %s kB%s" % - (maxp['Package'], maxp['Description'].split('\n')[0], component(maxp['Section']), + return("%s (source: %s): %s. In component %s, is %s. Version %s (%s), package size %s kB, installed size %s kB%s" % + (maxp['Package'], maxp['Source'] or maxp['Package'], maxp['Description'].split('\n')[0], component(maxp['Section']), maxp['Priority'], maxp['Version'], distro, int(maxp['Size'])/1024, maxp['Installed-Size'], archs)) return 'Package %s does not exist in %s' % (pkg, ', '.join(checkdists))