summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-10 18:52:56 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-10 18:52:56 -0700
commit3a3f4072ac2b6e8ce84bede2c77f9e12b039a0ce (patch)
tree610ae07c9c02c25b25d5dcdd797fa2fe2081de92
parent722000c545d7c23764382685d70819e42c11ead8 (diff)
downloadportage-3a3f4072ac2b6e8ce84bede2c77f9e12b039a0ce.tar.gz
portage-3a3f4072ac2b6e8ce84bede2c77f9e12b039a0ce.tar.bz2
portage-3a3f4072ac2b6e8ce84bede2c77f9e12b039a0ce.zip
In doebuild(), don't trigger prepare_build_dirs() for the fetch phase
with RESTRICT=fetch since fetch() doesn't call pkg_nofetch anymore.
-rw-r--r--pym/portage/package/ebuild/doebuild.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 696b65eb7..6518008f0 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -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