In doebuild(), don't create build dirs when "listonly" fetch mode.
authorZac Medico <zmedico@gentoo.org>
Mon, 6 Oct 2008 20:51:23 +0000 (20:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 6 Oct 2008 20:51:23 +0000 (20:51 -0000)
svn path=/main/trunk/; revision=11643

pym/portage/__init__.py

index 2cf46461eb0a817ee03752e428c07aaf6238b031..91804098138fbfcffbc248448d46f4a1a61d3f1d 100644 (file)
@@ -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