From: Zac Medico Date: Tue, 8 Dec 2009 21:07:31 +0000 (-0000) Subject: Use OrderedDict in portdbapi.getFetchMap() so that order in $A corresponds X-Git-Tag: v2.2_rc57~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16f2a01e156f2742677e9950bcf931239790c753;p=portage.git Use OrderedDict in portdbapi.getFetchMap() so that order in $A corresponds to order in SRC_URI. svn path=/main/trunk/; revision=14968 --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index a993227ca..df2c65640 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -16,7 +16,7 @@ portage.proxy.lazyimport.lazyimport(globals(), ) from portage.cache.cache_errors import CacheError -from portage.cache.mappings import slot_dict_class +from portage.cache.mappings import OrderedDict from portage.const import REPO_NAME_LOC from portage.data import portage_gid, secpass from portage.dbapi import dbapi @@ -734,7 +734,7 @@ class portdbapi(dbapi): matchall=(useflags is None)) myuris = flatten(myuris) - uri_map = {} + uri_map = OrderedDict() myuris.reverse() while myuris: