From: Zac Medico Date: Tue, 2 Mar 2010 19:50:05 +0000 (-0000) Subject: Fix: change os.mkdir to os.makedirs in case of there are more than one directory... X-Git-Tag: v2.1.8~190 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fe4a78c9cd297701d9b9d4c2aec0299ef8fb7882;p=portage.git 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. (trunk r15293) svn path=/main/branches/2.1.7/; revision=15532 --- 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: