projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ecf8d1
)
Return early from global directory initialization if the current user does not have...
author
Zac Medico
<zmedico@gentoo.org>
Wed, 9 Aug 2006 18:02:34 +0000
(18:02 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 9 Aug 2006 18:02:34 +0000
(18:02 -0000)
svn path=/main/trunk/; revision=4209
pym/portage.py
patch
|
blob
|
history
diff --git
a/pym/portage.py
b/pym/portage.py
index 1d31065fe36d2a5361802efa8e9c92d35cefa912..0e30cc9396a43668d8660a5d77155c6a94f4884a 100644
(file)
--- a/
pym/portage.py
+++ b/
pym/portage.py
@@
-1244,6
+1244,9
@@
class config:
def _init_dirs(self):
"""Create tmp, var/tmp and var/lib/portage (relative to $ROOT)."""
+ if not os.access(self["ROOT"], os.W_OK):
+ return
+
dir_mode_map = {
"tmp" :(-1, 01777, 0),
"var/tmp" :(-1, 01777, 0),