[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Apply an anonymously contributed patch to avoid crashin...
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria:/tmp/cvs-serv11919/lib/mixminion
Modified Files:
ClientMain.py
Log Message:
Apply an anonymously contributed patch to avoid crashing when "mixminion update-servers" is called with no .mixminion directory.
Index: ClientMain.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/ClientMain.py,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- ClientMain.py 2 Dec 2005 18:50:21 -0000 1.186
+++ ClientMain.py 16 Nov 2006 22:47:01 -0000 1.187
@@ -61,6 +61,8 @@
def configureClientLock(filename):
"""Prepare the client lock for use."""
global _CLIENT_LOCKFILE
+ parent, fname = os.path.split(filename)
+ createPrivateDir(parent)
_CLIENT_LOCKFILE = Lockfile(filename)
class ClientDiskLock: