From 399836f8ec0fb56b779512107a3660af3a059011 Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Mon, 8 May 2006 17:51:00 +0000 Subject: [PATCH] recursive directory create git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1130 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 5 ++++- modules/catalyst_lock.py | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2233f1ee..4b348828 100644 --- 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 modules/catalyst_lock.py: + recursive directory create 01 May 2006; Chris Gianelloni catalyst, modules/catalyst_support.py: diff --git a/modules/catalyst_lock.py b/modules/catalyst_lock.py index 6263db59..6d34a810 100755 --- a/modules/catalyst_lock.py +++ b/modules/catalyst_lock.py @@ -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] == "/": -- 2.26.2