From: Zac Medico Date: Thu, 21 Feb 2008 09:29:10 +0000 (-0000) Subject: Make LibraryPackageMap.update() sort the contents of the library_consumers X-Git-Tag: v2.2_pre3~19 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4fd25eb15117285db63c1eb772f4e4c116df381a;p=portage.git Make LibraryPackageMap.update() sort the contents of the library_consumers cache so that it's nice and orderly. svn path=/main/trunk/; revision=9364 --- 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()