summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskvidal <skvidal>2006-02-24 19:31:57 +0000
committerskvidal <skvidal>2006-02-24 19:31:57 +0000
commitfca88cf32108c65e4f35f17abdf2bd7e7e46c816 (patch)
treec29c6124b890fcad488d33a7566f31a32d2fbaf2
parentbc159ff3682548d87a7da2df610c82c4e6f8a923 (diff)
downloadmock-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.py5
1 files changed, 5 insertions, 0 deletions
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'):