r446 - zope-common/trunk
Fabio Tranchitella
kobold at alioth.debian.org
Thu Nov 2 23:43:46 CET 2006
Author: kobold
Date: 2006-11-02 23:43:46 +0100 (Thu, 02 Nov 2006)
New Revision: 446
Modified:
zope-common/trunk/dzhandle
Log:
zope3's mkzopeinstance doesn't create the parents dir.
Modified: zope-common/trunk/dzhandle
===================================================================
--- zope-common/trunk/dzhandle 2006-11-02 22:12:21 UTC (rev 445)
+++ zope-common/trunk/dzhandle 2006-11-02 22:43:46 UTC (rev 446)
@@ -1453,7 +1453,12 @@
cmd.append('--service-user=' + self.options.srvuser)
if self.options.srvport:
cmd.append('--service-port=' + self.options.srvport)
-
+
+ # zope3's mkzopeinstance doesn't create the parents dir
+ if self.zope['version'] == '3' and not os.path.isdir(self.instance_home):
+ os.makedirs(self.instance_home)
+ os.rmdir(self.instance_home)
+
rv = subprocess.call(cmd)
if rv:
subprocess.call(['/bin/rm', '-fr', self.instance_home])
More information about the pkg-zope-commits
mailing list