From e2c35a6ffab23b70edb018e33dfe2e3209054385 Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Thu, 6 Oct 2005 15:21:30 +0000 Subject: [PATCH] Recursively make the missing directories git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@844 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 5 ++++- modules/catalyst_lock.py | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d2c99e00..82544cff 100644 --- 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 modules/catalyst_lock.py: + Recursively make the missing directories 05 Oct 2005; Eric Edgar targets/support/functions.sh: Fix extract_modules to just echo a warning that it is missing diff --git a/modules/catalyst_lock.py b/modules/catalyst_lock.py index 11fa1cfc..909d34ad 100755 --- a/modules/catalyst_lock.py +++ b/modules/catalyst_lock.py @@ -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] == "/": -- 2.26.2