mock mock.py,1.36,1.37

John Clark Williams (jcwillia) fedora-extras-commits at redhat.com
Wed Mar 15 22:14:59 UTC 2006


Author: jcwillia

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

Modified Files:
	mock.py 
Log Message:
add chroot command for running arbitrary commands in the chroot


Index: mock.py
===================================================================
RCS file: /cvs/fedora/mock/mock.py,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- mock.py	24 Feb 2006 19:31:57 -0000	1.36
+++ mock.py	15 Mar 2006 22:14:38 -0000	1.37
@@ -780,6 +780,12 @@
 
         my.close()
         print 'Finished initializing root'
+
+    elif args[0] == 'chroot':
+        config_opts['clean'] = config_opts['quiet'] = False
+        my= Root(config_opts)
+        my.do_chroot(' '.join(args[1:]), True)
+        print 'Finished chroot command'
         
     else:
         if args[0] == 'rebuild':




More information about the fedora-extras-commits mailing list