summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
authorMike Bonnet <mikeb@redhat.com>2007-12-12 18:24:40 -0500
committerMichael E Brown <michael_e_brown@dell.com>2007-12-12 17:32:03 -0600
commitb6e2d5a26ac478ce3409cab32dac704f2db61ac6 (patch)
tree662541fe58f6b018d4c5410b259e0ae7fb0786ed /py/mock.py
parent33d6db8f39e2f5a1aed9c8bc0c7e5e453d662d0c (diff)
downloadmock-b6e2d5a26ac478ce3409cab32dac704f2db61ac6.tar.gz
mock-b6e2d5a26ac478ce3409cab32dac704f2db61ac6.tar.xz
mock-b6e2d5a26ac478ce3409cab32dac704f2db61ac6.zip
if --chroot only has one argument, pass it to doChroot() as a string instead of a list to support legacy quoting rules
Signed-off-by: Michael E Brown <michael_e_brown@dell.com>
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mock.py b/py/mock.py
index 5661dff..e7790f0 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -490,6 +490,8 @@ def main(ret):
if len(args) == 0:
log.critical("You must specify a command to run")
sys.exit(50)
+ elif len(args) == 1:
+ args = args[0]
log.info("Running in chroot: %s" % args)
chroot.tryLockBuildRoot()