commit:     12dbe651f71a92b4210642204276ea8e5d8fd2ea
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Jul  6 20:16:13 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Jul  6 20:16:13 2015 +0000
URL:        https://gitweb.gentoo.org/proj/grss.git/commit/?id=12dbe651

grs/Populate.py: fix clean_subdirs.

 grs/Populate.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/grs/Populate.py b/grs/Populate.py
index 0271e74..b9c2323 100644
--- a/grs/Populate.py
+++ b/grs/Populate.py
@@ -73,8 +73,9 @@ class Populate():
             gid = os.stat(path).st_gid
             mode = os.stat(path).st_mode
             shutil.rmtree(path)
-            os.makedirs(path, mode=mode, exist_ok=False)
+            os.mkdir(path)
             os.chown(path, uid, gid)
+            os.chmod(path, mode)
 
 
     def clean(self):

Reply via email to