summaryrefslogtreecommitdiffstats
path: root/py/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/mock.py')
-rwxr-xr-xpy/mock.py2
1 files changed, 1 insertions, 1 deletions
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.")