Bug #217905 - Fix portdbapi.getfetchlist() to correctly calculate
authorZac Medico <zmedico@gentoo.org>
Wed, 16 Apr 2008 17:54:52 +0000 (17:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 16 Apr 2008 17:54:52 +0000 (17:54 -0000)
USE when the useflags parameter is not passed in.

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

pym/portage/dbapi/porttree.py

index 532530131a1b17d0cb607417efd435c4b31088cb..20690e3ab4cb612044da2daa85320f1fcd9dd526 100644 (file)
@@ -380,7 +380,8 @@ class portdbapi(dbapi):
                                (mypkg, eapi.lstrip("-")))
 
                if useflags is None:
-                       useflags = mysettings["USE"].split()
+                       mysettings.setcpv(mypkg, mydb=self)
+                       useflags = mysettings["PORTAGE_USE"].split()
 
                myurilist = paren_reduce(myuris)
                myurilist = use_reduce(myurilist, uselist=useflags, matchall=all)