1 |
Author: zmedico |
2 |
Date: 2008-03-28 11:50:48 +0000 (Fri, 28 Mar 2008) |
3 |
New Revision: 9550 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.2/bin/ebuild.sh |
7 |
main/branches/2.1.2/bin/portageq |
8 |
Log: |
9 |
Use os.environ["SANDBOX_ON"] = "0" to make portageq exempt from sandbox for |
10 |
things like writing metadata cache. Thanks to ferringb for the suggestion. |
11 |
(trunk r9448) |
12 |
|
13 |
|
14 |
Modified: main/branches/2.1.2/bin/ebuild.sh |
15 |
=================================================================== |
16 |
--- main/branches/2.1.2/bin/ebuild.sh 2008-03-28 11:47:59 UTC (rev 9549) |
17 |
+++ main/branches/2.1.2/bin/ebuild.sh 2008-03-28 11:50:48 UTC (rev 9550) |
18 |
@@ -7,7 +7,7 @@ |
19 |
PORTAGE_PYM_PATH="${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}" |
20 |
|
21 |
SANDBOX_PREDICT="${SANDBOX_PREDICT}:/proc/self/maps:/dev/console:/dev/random" |
22 |
-export SANDBOX_PREDICT="${SANDBOX_PREDICT}:${PORTAGE_PYM_PATH}:${PORTAGE_DEPCACHEDIR}" |
23 |
+export SANDBOX_PREDICT |
24 |
export SANDBOX_WRITE="${SANDBOX_WRITE}:/dev/shm:/dev/stdout:/dev/stderr:${PORTAGE_TMPDIR}" |
25 |
export SANDBOX_READ="${SANDBOX_READ}:/:/dev/shm:/dev/stdin:${PORTAGE_TMPDIR}" |
26 |
# Don't use sandbox's BASH_ENV for new shells because it does |
27 |
|
28 |
Modified: main/branches/2.1.2/bin/portageq |
29 |
=================================================================== |
30 |
--- main/branches/2.1.2/bin/portageq 2008-03-28 11:47:59 UTC (rev 9549) |
31 |
+++ main/branches/2.1.2/bin/portageq 2008-03-28 11:50:48 UTC (rev 9550) |
32 |
@@ -21,6 +21,10 @@ |
33 |
|
34 |
import os |
35 |
|
36 |
+# This allows portageq to be exempt from sandbox, |
37 |
+# for things like updating metadata cache. |
38 |
+os.environ["SANDBOX_ON"] = "0" |
39 |
+ |
40 |
import types |
41 |
import portage_exception |
42 |
#----------------------------------------------------------------------------- |
43 |
|
44 |
-- |
45 |
gentoo-commits@l.g.o mailing list |