mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-13 18:01:28 +00:00
Verboser output, but without duplication. This should please bdrung
This commit is contained in:
parent
8e341da95c
commit
a3f9eeed9f
@ -72,18 +72,20 @@ def present_on(appearences):
|
|||||||
for flavor, types in present.iteritems():
|
for flavor, types in present.iteritems():
|
||||||
if len(types) > 1:
|
if len(types) > 1:
|
||||||
types.discard('supported')
|
types.discard('supported')
|
||||||
return ', '.join('%s [%s]' % (flavor, ' '.join(sorted(types)))
|
output = [' %s: %s' % (flavor, ', '.join(sorted(types)))
|
||||||
for flavor, types in present.iteritems())
|
for flavor, types in present.iteritems()]
|
||||||
|
output.sort()
|
||||||
|
return '\n'.join(output)
|
||||||
|
|
||||||
|
|
||||||
def output_binaries(index, binaries):
|
def output_binaries(index, binaries):
|
||||||
'''Print binaries found in index'''
|
'''Print binaries found in index'''
|
||||||
for binary in binaries:
|
for binary in binaries:
|
||||||
if binary in index:
|
if binary in index:
|
||||||
present = present_on(index[binary])
|
print "%s is seeded in:" % binary
|
||||||
print "%s is seeded in: %s" % (binary, present)
|
print present_on(index[binary])
|
||||||
else:
|
else:
|
||||||
print "%s is not seeded" % binary
|
print "%s is not seeded." % binary
|
||||||
|
|
||||||
|
|
||||||
def output_by_source(index, by_source):
|
def output_by_source(index, by_source):
|
||||||
@ -93,10 +95,10 @@ def output_by_source(index, by_source):
|
|||||||
for binary in binaries:
|
for binary in binaries:
|
||||||
if binary in index:
|
if binary in index:
|
||||||
seen = True
|
seen = True
|
||||||
present = present_on(index[binary])
|
print "%s: %s is seeded in:" % (source, binary)
|
||||||
print "%s: %s is seeded in: %s" % (source, binary, present)
|
print present_on(index[binary])
|
||||||
if not seen:
|
if not seen:
|
||||||
print "%s's binaries are not seeded" % source
|
print "%s's binaries are not seeded." % source
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user