summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-10-06 20:51:23 +0000
committerZac Medico <zmedico@gentoo.org>2008-10-06 20:51:23 +0000
commit70b194d9d7d131b20dc2707b026a23b4f80cf431 (patch)
treeea6d6a01806df269421bcbc5d6824368499f7306
parenta011c5ea5160b906f172347341b488c19ca74ed0 (diff)
downloadportage-70b194d9d7d131b20dc2707b026a23b4f80cf431.tar.gz
portage-70b194d9d7d131b20dc2707b026a23b4f80cf431.tar.bz2
portage-70b194d9d7d131b20dc2707b026a23b4f80cf431.zip
In doebuild(), don't create build dirs when "listonly" fetch mode.
svn path=/main/trunk/; revision=11643
-rw-r--r--pym/portage/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 2cf46461e..918040981 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -5430,7 +5430,8 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
# Build directory creation isn't required for any of these.
have_build_dirs = False
- if mydo not in ("digest", "help", "manifest"):
+ if not (mydo in ("digest", "help", "manifest") or \
+ (mydo == "fetch" and listonly)):
mystatus = prepare_build_dirs(myroot, mysettings, cleanup)
if mystatus:
return mystatus