From 5b742cccbab31768570a94032ed383041e8e9f6f Mon Sep 17 00:00:00 2001 From: Mounir Lamouri Date: Sat, 30 Jan 2010 22:35:30 +0000 Subject: [PATCH] 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 --- pym/portage/cache/fs_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2