summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-05-01 19:11:50 +0000
committerZac Medico <zmedico@gentoo.org>2009-05-01 19:11:50 +0000
commit8f372840de9d4c04caaeca953348141e89bb0e12 (patch)
tree7e8af7b11d7eb12da02ce6bc12ba3907f9e0473a
parentFix logic error which prevents repos.conf [DEFAULT] section from applying (diff)
downloadportage-multirepo-8f372840de9d4c04caaeca953348141e89bb0e12.tar.gz
portage-multirepo-8f372840de9d4c04caaeca953348141e89bb0e12.tar.bz2
portage-multirepo-8f372840de9d4c04caaeca953348141e89bb0e12.zip
Only generate KV when setting up the environment for a real ebuild phase. This
should preven "Permission Denied: /usr/src/linux/.config" errors reported by repoman users (repoman may trigger the error when it calls the fetch phase). (trunk r13580) svn path=/main/branches/2.1.6/; revision=13581
-rw-r--r--pym/portage/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index fa3cf9d7..4e770460 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -5402,7 +5402,10 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
mysettings["PORTAGE_BUILDDIR"], ".exit_status")
#set up KV variable -- DEP SPEEDUP :: Don't waste time. Keep var persistent.
- if mydo != "depend" and "KV" not in mysettings:
+ if mydo != 'depend' and 'KV' not in mysettings and \
+ mydo in ('compile', 'config', 'configure', 'info',
+ 'install', 'nofetch', 'postinst', 'postrm', 'preinst',
+ 'prepare', 'prerm', 'setup', 'test', 'unpack'):
mykv,err1=ExtractKernelVersion(os.path.join(myroot, "usr/src/linux"))
if mykv:
# Regular source tree