From 5149616ad7eda3c07fd0f13f1091c1db06a9cf7e Mon Sep 17 00:00:00 2001 From: Michael E Brown Date: Tue, 11 Dec 2007 12:58:29 -0600 Subject: fix rebuild multiple srpms test. --- py/mock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/mock.py b/py/mock.py index 105457d..012bb29 100755 --- a/py/mock.py +++ b/py/mock.py @@ -277,7 +277,7 @@ def set_config_opts_per_cmdline(config_opts, options, args): raise mock.exception.BadCmdline( "Must specify --resultdir when using --cleanup-after") - if len(args) > 1 and not options.resultdir: + if options.mode in ("rebuild",) and len(args) > 1 and not options.resultdir: raise mock.exception.BadCmdline( "Must specify --resultdir when building multiple RPMS.") -- cgit