Recursively make the missing directories
authorEric Edgar <rocket@gentoo.org>
Thu, 6 Oct 2005 15:21:30 +0000 (15:21 +0000)
committerEric Edgar <rocket@gentoo.org>
Thu, 6 Oct 2005 15:21:30 +0000 (15:21 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@844 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/catalyst_lock.py

index d2c99e00e7f03f06a743be1ceacfd03483382097..82544cff6aa7daa93b20dd4da5e9ee98a12553dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.336 2005/10/05 19:05:50 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.337 2005/10/06 15:21:30 rocket Exp $
+
+  06 Oct 2005; Eric Edgar <rocket@gentoo.org> modules/catalyst_lock.py:
+  Recursively make the missing directories
 
   05 Oct 2005; Eric Edgar <rocket@gentoo.org> targets/support/functions.sh:
   Fix extract_modules to just echo a warning that it is missing
index 11fa1cfc30899d637221c2837ce2d14a67cf507f..909d34ad061718a07153fc7a6fec50ca6653f5b5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/python
 # Copyright 1999-2005 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.2 2005/08/09 19:02:31 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/catalyst_lock.py,v 1.3 2005/10/06 15:21:30 rocket Exp $
 import os
 import fcntl
 import errno
@@ -75,7 +75,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] == "/":