From 4fd25eb15117285db63c1eb772f4e4c116df381a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 21 Feb 2008 09:29:10 +0000 Subject: [PATCH] Make LibraryPackageMap.update() sort the contents of the library_consumers cache so that it's nice and orderly. svn path=/main/trunk/; revision=9364 --- pym/portage/dbapi/vartree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.26.2