In doebuild(), don't trigger prepare_build_dirs() for the fetch phase
authorZac Medico <zmedico@gentoo.org>
Sat, 11 Sep 2010 01:52:56 +0000 (18:52 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 11 Sep 2010 01:52:56 +0000 (18:52 -0700)
with RESTRICT=fetch since fetch() doesn't call pkg_nofetch anymore.

pym/portage/package/ebuild/doebuild.py

index 696b65eb7b9fea241ef1eb75bb2efbbd80116524..6518008f02e296d511d58059efe900554d81a984 100644 (file)
@@ -614,8 +614,7 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
                # when pkg_nofetch is spawned.
                have_build_dirs = False
                if not parallel_fetchonly and \
-                       mydo not in ('digest', 'help', 'manifest') and \
-                       not (mydo == 'fetch' and 'fetch' not in restrict):
+                       mydo not in ('digest', 'fetch', 'help', 'manifest'):
                        mystatus = prepare_build_dirs(myroot, mysettings, cleanup)
                        if mystatus:
                                return mystatus