summaryrefslogtreecommitdiffstats
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:54 -0600
commit5149616ad7eda3c07fd0f13f1091c1db06a9cf7e (patch)
tree8bce9d9c3ab1152a4dd831cf136a8266f8ca070f
parent4ebeda2c46e91902210988e158ff08b6e6b25365 (diff)
downloadmock-5149616ad7eda3c07fd0f13f1091c1db06a9cf7e.tar.gz
mock-5149616ad7eda3c07fd0f13f1091c1db06a9cf7e.tar.xz
mock-5149616ad7eda3c07fd0f13f1091c1db06a9cf7e.zip
fix rebuild multiple srpms test.
-rwxr-xr-xpy/mock.py2
1 files changed, 1 insertions, 1 deletions
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.")