diff options
-rw-r--r-- | pym/portage.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py index 89d59812a..efe65c5a3 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -8484,10 +8484,8 @@ class dblink: del cfgfiledict["IGNORE"] my_private_path = os.path.join(destroot, PRIVATE_PATH) - if not os.path.exists(my_private_path): - os.makedirs(my_private_path) - os.chown(my_private_path, os.getuid(), portage_gid) - os.chmod(my_private_path, 02770) + portage_util.ensure_dirs( + my_private_path, gid=portage_gid, mode=02750, mask=02) writedict(cfgfiledict, conf_mem_file) del conf_mem_file |