From b6e2d5a26ac478ce3409cab32dac704f2db61ac6 Mon Sep 17 00:00:00 2001 From: Mike Bonnet Date: Wed, 12 Dec 2007 18:24:40 -0500 Subject: 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 --- py/mock.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/mock.py') 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() -- cgit