[linux-tools] 05/07: debian.py: Implement stable order of fields not in the predefined order

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Tue Jan 19 01:27:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux-tools.

commit 56b9798cd8b341f5dd12d3885563639c19c573a8
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Fri Jan 8 12:15:30 2016 +0000

    debian.py: Implement stable order of fields not in the predefined order
---
 debian/changelog                         | 1 +
 debian/lib/python/debian_linux/debian.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index a46a17d..f4beb33 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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 at decadent.org.uk>  Tue, 19 Jan 2016 00:04:27 +0000
 
diff --git a/debian/lib/python/debian_linux/debian.py b/debian/lib/python/debian_linux/debian.py
index 00db2c3..1df0a1b 100644
--- a/debian/lib/python/debian_linux/debian.py
+++ b/debian/lib/python/debian_linux/debian.py
@@ -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):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git



More information about the Kernel-svn-changes mailing list