debian.py: Implement stable order of fields not in the predefined order

This commit is contained in:
Ben Hutchings 2016-01-08 12:15:30 +00:00
parent 6a920e6845
commit 56b9798cd8
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ linux-tools (4.4-1~exp1) UNRELEASED; urgency=medium
[ Ben Hutchings ]
* linux-perf: Fix reading of build-id from vDSO
* linux-perf: Leave -rc suffix out of version in package description
* debian.py: Implement stable order of fields not in the predefined order
-- Ben Hutchings <ben@decadent.org.uk> Tue, 19 Jan 2016 00:04:27 +0000

View File

@ -424,7 +424,7 @@ class Package(dict):
if i in self:
keys.remove(i)
yield i
for i in keys:
for i in sorted(list(keys)):
yield i
def iteritems(self):