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

mock mock.py,1.19,1.20



Author: dcbw

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

Modified Files:
	mock.py 
Log Message:
Fix up basedir, it was actually config['root'] not config['basedir'] that needed to be modified.  Sigh.


Index: mock.py
===================================================================
RCS file: /cvs/fedora/mock/mock.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- mock.py	25 Jun 2005 17:27:29 -0000	1.19
+++ mock.py	25 Jun 2005 19:00:52 -0000	1.20
@@ -46,10 +46,10 @@
         self._state = 'unstarted'
         self.tmplog = []
         self.config = config
-        basedir = config['basedir']
+        root = config['root']
         if config.has_key('unique-ext'):
-            basedir = "%s-%s" % (config['basedir'], config['unique-ext'])
-        self.basedir = os.path.join(basedir, config['root'])
+            root = "%s-%s" % (root, config['unique-ext'])
+        self.basedir = os.path.join(config['basedir'], root)
         self.target_arch = config['target_arch']
         self.rootdir = os.path.join(self.basedir, 'root')
         self.homedir = self.config['chroothome']


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