[libvirt] [PATCH 1/2] Fix ordering of <exports> in API description file

Daniel P. Berrange berrange at redhat.com
Fri Oct 2 11:31:38 UTC 2009


* docs/apibuild.py: Make uniq() function sort keys before returning
  them to ensure consitent ordering of <exports> in XML file
---
 docs/apibuild.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/docs/apibuild.py b/docs/apibuild.py
index b00619f..c5257f3 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -55,7 +55,9 @@ def uniq(items):
     d = {}
     for item in items:
         d[item]=1
-    return d.keys()
+    k = d.keys()
+    k.sort()
+    return k
 
 class identifier:
     def __init__(self, name, header=None, module=None, type=None, lineno = 0,
-- 
1.6.2.5




More information about the libvir-list mailing list