summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-02-21 09:29:10 +0000
committerZac Medico <zmedico@gentoo.org>2008-02-21 09:29:10 +0000
commit4fd25eb15117285db63c1eb772f4e4c116df381a (patch)
tree4fca801bd96cb944d12191be355aa1c061d01ad8
parent2ab5757ff9d9771ffd5f57fcfcd73c79c73ea19c (diff)
downloadportage-4fd25eb15117285db63c1eb772f4e4c116df381a.tar.gz
portage-4fd25eb15117285db63c1eb772f4e4c116df381a.tar.bz2
portage-4fd25eb15117285db63c1eb772f4e4c116df381a.zip
Make LibraryPackageMap.update() sort the contents of the library_consumers
cache so that it's nice and orderly. svn path=/main/trunk/; revision=9364
-rw-r--r--pym/portage/dbapi/vartree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index 5d7b0586f..f8a945e9e 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -162,7 +162,8 @@ class LibraryPackageMap(object):
else:
obj_dict[lib].append(mysplit[0])
mapfile = open(self._filename, "w")
- for lib in obj_dict:
+ for lib in sorted(obj_dict):
+ obj_dict[lib].sort()
mapfile.write(lib+" "+",".join(obj_dict[lib])+"\n")
mapfile.close()