diff options
author | skvidal <skvidal> | 2006-02-24 19:31:57 +0000 |
---|---|---|
committer | skvidal <skvidal> | 2006-02-24 19:31:57 +0000 |
commit | fca88cf32108c65e4f35f17abdf2bd7e7e46c816 (patch) | |
tree | c29c6124b890fcad488d33a7566f31a32d2fbaf2 | |
parent | bc159ff3682548d87a7da2df610c82c4e6f8a923 (diff) | |
download | mock-fca88cf32108c65e4f35f17abdf2bd7e7e46c816.tar.gz mock-fca88cf32108c65e4f35f17abdf2bd7e7e46c816.tar.xz mock-fca88cf32108c65e4f35f17abdf2bd7e7e46c816.zip |
add patch from Clark Williams to be able to specify configdir
-rw-r--r-- | mock.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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'): |