diff options
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_deps.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 9c922f7e036..c0a330b1b5e 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -1023,10 +1023,10 @@ def show_object_duplicates(bld, tgt_list): Logs.info("showing indirect dependency counts (sorted by count)") - def indirect_count(t1, t2): - return len(t2.indirect_objects) - len(t1.indirect_objects) + def indirect_count(t): + return len(t.indirect_objects) - sorted_list = sorted(tgt_list, cmp=indirect_count) + sorted_list = sorted(tgt_list, key=indirect_count, reverse=True) for t in sorted_list: if len(t.indirect_objects) > 1: Logs.info("%s depends on %u indirect objects" % (t.sname, len(t.indirect_objects))) |