summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 6899ef8a6..c32cb62b2 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2709,9 +2709,13 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
mycpv = "/".join((mysettings["CATEGORY"], mysettings["PF"]))
- newuris, alist = mydbapi.getfetchlist(mycpv, mysettings=mysettings)
+ # Make sure we get the correct tree in case there are overlays.
+ mytree = os.path.realpath(
+ os.path.dirname(os.path.dirname(mysettings["O"])))
+ newuris, alist = mydbapi.getfetchlist(
+ mycpv, mytree=mytree, mysettings=mysettings)
alluris, aalist = mydbapi.getfetchlist(
- mycpv, mysettings=mysettings, all=True)
+ mycpv, mytree=mytree, all=True, mysettings=mysettings)
mysettings["A"] = " ".join(alist)
mysettings["AA"] = " ".join(aalist)
if ("mirror" in features) or fetchall: