1 |
Author: zmedico |
2 |
Date: 2009-05-01 19:11:50 +0000 (Fri, 01 May 2009) |
3 |
New Revision: 13581 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.6/pym/portage/__init__.py |
7 |
Log: |
8 |
Only generate KV when setting up the environment for a real ebuild phase. This |
9 |
should preven "Permission Denied: /usr/src/linux/.config" errors reported |
10 |
by repoman users (repoman may trigger the error when it calls the fetch phase). |
11 |
(trunk r13580) |
12 |
|
13 |
Modified: main/branches/2.1.6/pym/portage/__init__.py |
14 |
=================================================================== |
15 |
--- main/branches/2.1.6/pym/portage/__init__.py 2009-05-01 19:11:26 UTC (rev 13580) |
16 |
+++ main/branches/2.1.6/pym/portage/__init__.py 2009-05-01 19:11:50 UTC (rev 13581) |
17 |
@@ -5402,7 +5402,10 @@ |
18 |
mysettings["PORTAGE_BUILDDIR"], ".exit_status") |
19 |
|
20 |
#set up KV variable -- DEP SPEEDUP :: Don't waste time. Keep var persistent. |
21 |
- if mydo != "depend" and "KV" not in mysettings: |
22 |
+ if mydo != 'depend' and 'KV' not in mysettings and \ |
23 |
+ mydo in ('compile', 'config', 'configure', 'info', |
24 |
+ 'install', 'nofetch', 'postinst', 'postrm', 'preinst', |
25 |
+ 'prepare', 'prerm', 'setup', 'test', 'unpack'): |
26 |
mykv,err1=ExtractKernelVersion(os.path.join(myroot, "usr/src/linux")) |
27 |
if mykv: |
28 |
# Regular source tree |