From 1424ff742388dea70c46e8ab51b148c794ed1f23 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 May 2009 19:11:26 +0000 Subject: [PATCH] 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). svn path=/main/trunk/; revision=13580 --- pym/portage/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index e18531032..7eff357d2 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5411,7 +5411,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 -- 2.26.2