From: Mounir Lamouri Date: Sat, 30 Jan 2010 22:35:30 +0000 (-0000) Subject: Fix: change os.mkdir to os.makedirs in case of there are more than one directory... X-Git-Tag: v2.2_rc63~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b742cccbab31768570a94032ed383041e8e9f6f;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. svn path=/main/trunk/; revision=15293 --- 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: