debian/bin/buildcheck.py: Use sorted function.

svn path=/dists/sid/linux-2.6/; revision=15439
This commit is contained in:
Bastian Blank 2010-03-21 12:29:59 +00:00
parent d59af98a3b
commit 9995fd5f3f
1 changed files with 3 additions and 9 deletions

View File

@ -73,23 +73,17 @@ class CheckAbi(object):
if add:
out.write("\nAdded symbols:\n")
t = list(add)
t.sort()
for name in t:
for name in sorted(add):
symbols[name].write(out, name in ignore)
if change:
out.write("\nChanged symbols:\n")
t = list(change)
t.sort()
for name in t:
for name in sorted(change):
symbols[name].write(out, name in ignore)
if remove:
out.write("\nRemoved symbols:\n")
t = list(remove)
t.sort()
for name in t:
for name in sorted(remove):
symbols[name].write(out, name in ignore)
return ret