diff --git a/find_reduced.py b/find_reduced.py index 5904205..b504859 100755 --- a/find_reduced.py +++ b/find_reduced.py @@ -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]))