Display the binary package depended on, when searching by source package

This commit is contained in:
Stefano Rivera 2011-11-12 00:00:44 +02:00
parent fae3d8db54
commit 6ac3640c95

View File

@ -119,11 +119,14 @@ def display_verbose(data):
print '=' * len(field)
rdeps.sort(key=lambda x: x['Package'])
for rdep in rdeps:
line = '* %s' % rdep['Package']
if all_archs and set(rdep['Architectures']) != all_archs:
print '* %s [%s]' % (rdep['Package'],
', '.join(sorted(rdep['Architectures'])))
else:
print '* %s' % rdep['Package']
line += ' [%s]' % ' '.join(sorted(rdep['Architectures']))
if 'Dependency' in rdep:
if len(line) < 30:
line += ' ' * (30 - len(line))
line += ' (for %s)' % rdep['Dependency']
print line
print
if all_archs: