X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fstats.py;h=bbd58881f0b66883bf71557510b09ec980179d29;hb=5d965c34b35048f8a8fab0a7a11f2943d833952d;hp=7c61e2a42948fa58e2bce7a0d50493d981ebfee0;hpb=1fa1f22b70c6ee46aea78ee40b9797a574d7c583;p=dak.git diff --git a/dak/stats.py b/dak/stats.py index 7c61e2a4..bbd58881 100755 --- a/dak/stats.py +++ b/dak/stats.py @@ -111,17 +111,6 @@ def longest(list): longest = l return longest -def suite_sort(a, b): - if Cnf.has_key("Suite::%s::Priority" % (a)): - a_priority = int(Cnf["Suite::%s::Priority" % (a)]) - else: - a_priority = 0 - if Cnf.has_key("Suite::%s::Priority" % (b)): - b_priority = int(Cnf["Suite::%s::Priority" % (b)]) - else: - b_priority = 0 - return cmp(a_priority, b_priority) - def output_format(suite): output_suite = [] for word in suite.split("-"): @@ -164,7 +153,6 @@ def number_of_packages(): ## Print the results # Setup suite_list = suites.values() - suite_list.sort(suite_sort) suite_id_list = [] suite_arches = {} for suite in suite_list: