1 |
Author: volkmar |
2 |
Date: 2010-01-30 22:35:30 +0000 (Sat, 30 Jan 2010) |
3 |
New Revision: 15293 |
4 |
|
5 |
Modified: |
6 |
main/trunk/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 |
|
11 |
|
12 |
Modified: main/trunk/pym/portage/cache/fs_template.py |
13 |
=================================================================== |
14 |
--- main/trunk/pym/portage/cache/fs_template.py 2010-01-30 16:55:15 UTC (rev 15292) |
15 |
+++ main/trunk/pym/portage/cache/fs_template.py 2010-01-30 22:35:30 UTC (rev 15293) |
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: |