commit: d4efb6bffa322304e6ebba7797f7b9c2e6460465
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 11 19:05:22 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Oct 11 19:05:22 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=d4efb6bf
lock: fix ensure_dirs call
We want to use our local wrapper because the snakeoil one defaults
to mode 777 whereas ours defaults to 755.
catalyst/lock.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/catalyst/lock.py b/catalyst/lock.py
index 39926dd..808df4e 100644
--- a/catalyst/lock.py
+++ b/catalyst/lock.py
@@ -3,6 +3,7 @@ import os
from snakeoil import fileutils
from snakeoil import osutils
+from catalyst.fileops import ensure_dirs
LockInUse = osutils.LockException
@@ -14,7 +15,7 @@ class LockDir(object):
def __init__(self, lockdir):
self.gid = 250
self.lockfile = os.path.join(lockdir, '.catalyst_lock')
- osutils.ensure_dirs(lockdir)
+ ensure_dirs(lockdir)
fileutils.touch(self.lockfile, mode=0o664)
os.chown(self.lockfile, -1, self.gid)
self.lock = osutils.FsLock(self.lockfile)