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

svn path=/main/trunk/; revision=9916

pym/portage/dbapi/porttree.py

index 20690e3ab4cb612044da2daa85320f1fcd9dd526..3ea73d00ad568c2f902ed4010ec70aa535385849 100644 (file)
@@ -362,7 +362,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)