recursive directory create
authorEric Edgar <rocket@gentoo.org>
Mon, 8 May 2006 17:51:00 +0000 (17:51 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 8 May 2006 17:51:00 +0000 (17:51 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1130 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/catalyst_lock.py

index 2233f1ee8d1ee9f73e614b88c7e08d1dcead26d8..4b348828c3c31b00a612f2cdb1fef4002cd31b7b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.614 2006/05/01 19:31:55 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.615 2006/05/08 17:51:00 rocket Exp $
+
+  08 May 2006; Eric Edgar <rocket@gentoo.org> modules/catalyst_lock.py:
+  recursive directory create
 
   01 May 2006; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
   modules/catalyst_support.py:
index 6263db59f635a579a62e3d8f520da071246227c9..6d34a810e8b3b5797e7f7b6ad49d99e69f22f28a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_lock.py,v 1.7 2006/05/03 22:18:38 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_lock.py,v 1.8 2006/05/08 17:51:00 rocket Exp $
 import os
 import fcntl
 import errno
@@ -66,7 +66,7 @@ class LockDir:
 
        def set_lockdir(self,lockdir):
                if not os.path.exists(lockdir):
-                       os.mkdir(lockdir)
+                       os.makedirs(lockdir)
                if os.path.isdir(lockdir):
                        if not self.islocked():
                                if lockdir[-1] == "/":