Index: pym/portage.py =================================================================== --- pym/portage.py (revision 9913) +++ pym/portage.py (revision 9919) @@ -7438,7 +7438,7 @@ 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) @@ -7455,8 +7455,9 @@ "getfetchlist(): '%s' has unsupported EAPI: '%s'" % \ (mypkg, eapi.lstrip("-"))) - if useflags is None: - useflags = mysettings["USE"].split() + if not all and useflags is None: + 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)