add overview of most droppable

This commit is contained in:
josch 2012-10-09 09:19:30 +02:00
parent 4bee037807
commit e34cde7aa5

View file

@ -209,5 +209,16 @@ for d in debian_names:
if bindeps:
print "src:%s %s"%(d, " ".join(bindeps))
print list(set(missing_deb_mappings))
print list(set(missing_gen_mappings))
all_droppable.extend(bindeps)
sys.stderr.write("%s\n%s\n"%(list(set(missing_deb_mappings)),list(set(missing_gen_mappings))))
drop_freq = dict()
for p in all_droppable:
if drop_freq.get(p):
drop_freq[p] += 1
else:
drop_freq[p] = 1
for k in sorted(drop_freq.keys(), key=drop_freq.__getitem__, reverse=True)[:20]:
sys.stderr.write("%s: %s\n"%(k, drop_freq[k]))