Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13580 - main/trunk/pym/portage
Date: Fri, 01 May 2009 19:11:30
Message-Id: E1Lzy8u-0003sH-BS@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-05-01 19:11:26 +0000 (Fri, 01 May 2009)
3 New Revision: 13580
4
5 Modified:
6 main/trunk/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
12
13 Modified: main/trunk/pym/portage/__init__.py
14 ===================================================================
15 --- main/trunk/pym/portage/__init__.py 2009-05-01 18:35:59 UTC (rev 13579)
16 +++ main/trunk/pym/portage/__init__.py 2009-05-01 19:11:26 UTC (rev 13580)
17 @@ -5411,7 +5411,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