diff options
author | Mike Bonnet <mikeb@redhat.com> | 2007-12-12 18:24:40 -0500 |
---|---|---|
committer | Michael E Brown <michael_e_brown@dell.com> | 2007-12-12 17:32:03 -0600 |
commit | b6e2d5a26ac478ce3409cab32dac704f2db61ac6 (patch) | |
tree | 662541fe58f6b018d4c5410b259e0ae7fb0786ed /py/mock.py | |
parent | 33d6db8f39e2f5a1aed9c8bc0c7e5e453d662d0c (diff) | |
download | mock-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-x | py/mock.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() |