From 8f372840de9d4c04caaeca953348141e89bb0e12 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 May 2009 19:11:50 +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). (trunk r13580) svn path=/main/branches/2.1.6/; revision=13581 --- 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 fa3cf9d75..4e770460a 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 -- 2.26.2