summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/resolver/output.py2
-rw-r--r--pym/portage/dbapi/porttree.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/resolver/output.py b/pym/_emerge/resolver/output.py
index d324d7ef7..9897590b4 100644
--- a/pym/_emerge/resolver/output.py
+++ b/pym/_emerge/resolver/output.py
@@ -535,7 +535,7 @@ def display(depgraph, mylist, favorites=[], verbosity=None):
if pkg_type == "ebuild" and pkg_merge:
try:
myfilesdict = portdb.getfetchsizes(pkg_key,
- useflags=pkg_use, debug=conf.edebug)
+ useflags=pkg_use, myrepo=pkg.repo)
except InvalidDependString:
# should have been masked before it was selected
raise
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 938877ca1..979a48839 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -570,7 +570,7 @@ class portdbapi(dbapi):
def getfetchsizes(self, mypkg, useflags=None, debug=0, myrepo=None):
# returns a filename:size dictionnary of remaining downloads
- myebuild = self.findname(mypkg, myrepo=myrepo)
+ myebuild, mytree = self.findname2(mypkg, myrepo=myrepo)
if myebuild is None:
raise AssertionError(_("ebuild not found for '%s'") % mypkg)
pkgdir = os.path.dirname(myebuild)
@@ -581,7 +581,7 @@ class portdbapi(dbapi):
writemsg(_("[empty/missing/bad digest]: %s\n") % (mypkg,))
return {}
filesdict={}
- myfiles = self.getFetchMap(mypkg, useflags=useflags)
+ myfiles = self.getFetchMap(mypkg, useflags=useflags, mytree=mytree)
#XXX: maybe this should be improved: take partial downloads
# into account? check checksums?
for myfile in myfiles: