[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

mock mock.py,1.18,1.19



Author: skvidal

Update of /cvs/fedora/mock
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7791

Modified Files:
	mock.py 
Log Message:

make sure statedir is present before writing the statefile



Index: mock.py
===================================================================
RCS file: /cvs/fedora/mock/mock.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- mock.py	25 Jun 2005 17:23:09 -0000	1.18
+++ mock.py	25 Jun 2005 17:27:29 -0000	1.19
@@ -62,7 +62,8 @@
             self.statedir = os.path.join(self.basedir, 'state')
         else:
             self.statedir = self.config['statedir']
-
+        
+        self._ensure_dir(self.statedir)
         self.state("init")
         
         if config['clean']: 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]