Make LibraryPackageMap.update() sort the contents of the library_consumers
authorZac Medico <zmedico@gentoo.org>
Thu, 21 Feb 2008 09:29:10 +0000 (09:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 21 Feb 2008 09:29:10 +0000 (09:29 -0000)
cache so that it's nice and orderly.

svn path=/main/trunk/; revision=9364

pym/portage/dbapi/vartree.py

index 5d7b0586f4e7f08ba5481f5ecb13f147cc873c7b..f8a945e9ed4a6ebcee7e1faed4eebcb42ed8f7fa 100644 (file)
@@ -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()