From fca88cf32108c65e4f35f17abdf2bd7e7e46c816 Mon Sep 17 00:00:00 2001 From: skvidal Date: Fri, 24 Feb 2006 19:31:57 +0000 Subject: add patch from Clark Williams to be able to specify configdir --- mock.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mock.py b/mock.py index bf5919a..98a9c9c 100644 --- a/mock.py +++ b/mock.py @@ -646,6 +646,8 @@ def command_parse(): 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 @@ def main(): 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'): -- cgit