summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 11d5e398f..1bb7c17e9 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2613,7 +2613,9 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
if mydbapi is None:
mydbapi = db[myroot][tree].dbapi
- if vartree is None:
+ if vartree is None and (mydo in ("merge, qmerge") or \
+ "PORT_LOGDIR" in mysettings and \
+ mydo not in ("depend", "fetch", "digest", "manifest")):
vartree = db[myroot]["vartree"]
features = mysettings.features