If the mysettings parameter is not passed in to portdbapi.getfetchlist()
authorZac Medico <zmedico@gentoo.org>
Wed, 16 Apr 2008 18:02:48 +0000 (18:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 16 Apr 2008 18:02:48 +0000 (18:02 -0000)
then substitue self.doebuild_settings since that one is mutable which
is necessary in case setcpv() needs to be called. (trunk r9916)

svn path=/main/branches/2.1.2/; revision=9917

pym/portage.py

index 43226d450d6d89684eb4909b321dea16b9898fde..fcdf6e58913fb578a4dd74827edf4a864c325372 100644 (file)
@@ -7438,7 +7438,7 @@ class portdbapi(dbapi):
 
        def getfetchlist(self, mypkg, useflags=None, mysettings=None, all=0, mytree=None):
                if mysettings is None:
-                       mysettings = self.mysettings
+                       mysettings = self.doebuild_settings
                try:
                        eapi, myuris = self.aux_get(mypkg,
                                ["EAPI", "SRC_URI"], mytree=mytree)