From e34cde7aa5ead888ca1c76d7efca4806245e43a6 Mon Sep 17 00:00:00 2001 From: josch Date: Tue, 9 Oct 2012 09:19:30 +0200 Subject: [PATCH] add overview of most droppable --- find_reduced.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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]))