1 |
Author: zmedico |
2 |
Date: 2010-03-02 19:50:05 +0000 (Tue, 02 Mar 2010) |
3 |
New Revision: 15532 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.7/pym/portage/cache/fs_template.py |
7 |
Log: |
8 |
Fix: change os.mkdir to os.makedirs in case of there are more than one directory depth missing. |
9 |
According to docs.python.org, permissions may be not respected with os.makedirs... with some systems. |
10 |
(trunk r15293) |
11 |
|
12 |
Modified: main/branches/2.1.7/pym/portage/cache/fs_template.py |
13 |
=================================================================== |
14 |
--- main/branches/2.1.7/pym/portage/cache/fs_template.py 2010-03-02 19:49:50 UTC (rev 15531) |
15 |
+++ main/branches/2.1.7/pym/portage/cache/fs_template.py 2010-03-02 19:50:05 UTC (rev 15532) |
16 |
@@ -72,7 +72,7 @@ |
17 |
if perms == -1: |
18 |
perms = 0 |
19 |
perms |= 0o755 |
20 |
- os.mkdir(base, perms) |
21 |
+ os.makedirs(base, perms) |
22 |
if self._gid != -1: |
23 |
os.chown(base, -1, self._gid) |
24 |
finally: |