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

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

pym/portage.py

index 70a6c0dd95b0b44a4c76e61b79ddf9253667eb24..43226d450d6d89684eb4909b321dea16b9898fde 100644 (file)
@@ -7456,7 +7456,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 = portage_dep.paren_reduce(myuris)
                myurilist = portage_dep.use_reduce(myurilist,uselist=useflags,matchall=all)