From e7ddbe8fe2b81f74999318c59d2a37a0d18d72d0 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(-) (limited to 'py/mock.py') diff --git a/py/mock.py b/py/mock.py index 2fe88f2..90cd1d5 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