diff options
author | Mounir Lamouri <volkmar@gentoo.org> | 2010-01-30 22:35:30 +0000 |
---|---|---|
committer | Mounir Lamouri <volkmar@gentoo.org> | 2010-01-30 22:35:30 +0000 |
commit | 5b742cccbab31768570a94032ed383041e8e9f6f (patch) | |
tree | ec3ffeb8015af7d461cd5daf09be7ee2ac0908e8 | |
parent | b3b332b940bd369e5e6e4654a69d837a907795f3 (diff) | |
download | portage-5b742cccbab31768570a94032ed383041e8e9f6f.tar.gz portage-5b742cccbab31768570a94032ed383041e8e9f6f.tar.bz2 portage-5b742cccbab31768570a94032ed383041e8e9f6f.zip |
Fix: change os.mkdir to os.makedirs in case of there are more than one directory depth missing.
According to docs.python.org, permissions may be not respected with os.makedirs... with some systems.
svn path=/main/trunk/; revision=15293
-rw-r--r-- | pym/portage/cache/fs_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/cache/fs_template.py b/pym/portage/cache/fs_template.py index 7cd8af4d7..9ca0c9dc2 100644 --- a/pym/portage/cache/fs_template.py +++ b/pym/portage/cache/fs_template.py @@ -72,7 +72,7 @@ class FsBased(template.database): if perms == -1: perms = 0 perms |= 0o755 - os.mkdir(base, perms) + os.makedirs(base, perms) if self._gid != -1: os.chown(base, -1, self._gid) finally: |