Use OrderedDict in portdbapi.getFetchMap() so that order in $A corresponds
authorZac Medico <zmedico@gentoo.org>
Thu, 10 Dec 2009 01:03:33 +0000 (01:03 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 10 Dec 2009 01:03:33 +0000 (01:03 -0000)
to order in SRC_URI. (trunk r14968)

svn path=/main/branches/2.1.7/; revision=15002

pym/portage/dbapi/porttree.py

index a993227cabf75abbdb0d04af5823e58dc5dd22fd..df2c65640838f97a00000da64f6d1e9144693c36 100644 (file)
@@ -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: