summaryrefslogtreecommitdiffstats
path: root/py
diff options
context:
space:
mode:
authorMichael E Brown <michael_e_brown@dell.com>2007-12-11 12:58:29 -0600
committerMichael E Brown <michael_e_brown@dell.com>2007-12-11 12:58:29 -0600
commite7ddbe8fe2b81f74999318c59d2a37a0d18d72d0 (patch)
tree5aa6e05a4760a99c7ffc58072bf193fec0b6636d /py
parent7c4c5d62b6400c3a30294cfa2d5f7b8fa1d37aec (diff)
downloadmock-e7ddbe8fe2b81f74999318c59d2a37a0d18d72d0.tar.gz
mock-e7ddbe8fe2b81f74999318c59d2a37a0d18d72d0.tar.xz
mock-e7ddbe8fe2b81f74999318c59d2a37a0d18d72d0.zip
fix rebuild multiple srpms test.
Diffstat (limited to '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.")