mock mock.py,1.35,1.36

Seth Vidal (skvidal) fedora-extras-commits at redhat.com
Fri Feb 24 19:32:04 UTC 2006


Author: skvidal

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

Modified Files:
	mock.py 
Log Message:

add patch from Clark Williams to be able to specify configdir



Index: mock.py
===================================================================
RCS file: /cvs/fedora/mock/mock.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- mock.py	24 Jan 2006 17:15:10 -0000	1.35
+++ mock.py	24 Feb 2006 19:31:57 -0000	1.36
@@ -646,6 +646,8 @@
             help="path for state dirresulting files to be put")
     parser.add_option("--uniqueext", action="store", type="string", default=None,
             help="Arbitrary, unique extension to append to buildroot directory name")
+    parser.add_option("--configdir", action="store", dest="configdir", default=None,
+                      help="Change where config files are found")
     parser.add_option("--quiet", action ="store_true", dest="quiet", 
             default=False, help="quiet down output")
 
@@ -711,6 +713,9 @@
     if len(args) < 1:
         error("No srpm or command specified - nothing to do")
         sys.exit(50)
+
+    if options.configdir:
+        config_path = options.configdir
     
     # read in the config file by chroot name
     if options.chroot.endswith('.cfg'):




More information about the scm-commits mailing list