From fe4a78c9cd297701d9b9d4c2aec0299ef8fb7882 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Mar 2010 19:50:05 +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. (trunk r15293) svn path=/main/branches/2.1.7/; revision=15532 --- 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