[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



* 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]