Avoid double builds with mock

According to mock man page the default behavior without a command flag is to run --rebuild.
This change avoids what is essentially doing --rebuild twice.
This commit is contained in:
Trey Dockendorf 2018-03-02 12:59:06 -05:00
parent 18babd175f
commit dcd355949e

View file

@ -1150,9 +1150,6 @@ class MockBuilder(Builder):
else:
print("Skipping mock --init due to speedup option.")
print("Installing deps in mock...")
run_command_func("mock %s -r %s %s" % (
self.mock_cmd_args, self.mock_tag, self.srpm_location))
print("Building RPMs in mock...")
run_command_func('mock %s -r %s --rebuild %s' %
(self.mock_cmd_args, self.mock_tag, self.srpm_location))