From dcd355949e2f67ccf56bf39dc5accbe5be4f8f98 Mon Sep 17 00:00:00 2001 From: Trey Dockendorf Date: Fri, 2 Mar 2018 12:59:06 -0500 Subject: [PATCH] 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. --- src/tito/builder/main.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tito/builder/main.py b/src/tito/builder/main.py index 2d4751a..547c088 100644 --- a/src/tito/builder/main.py +++ b/src/tito/builder/main.py @@ -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))