| |
@@ -3007,7 +3007,7 @@
|
| |
return root, config_dir
|
| |
|
| |
def mockbuild(self, mockargs=[], root=None, hashtype=None, shell=None,
|
| |
- force_local_mock_config=None, srpm_mock=False):
|
| |
+ force_local_mock_config=None, srpm_mock=False, default_mock_resultdir=False):
|
| |
"""Build the package in mock, using mockargs
|
| |
|
| |
Log the output and returns nothing
|
| |
@@ -3047,7 +3047,9 @@
|
| |
if config_dir:
|
| |
cmd.extend(['--configdir', config_dir])
|
| |
|
| |
- cmd += ['-r', root, '--resultdir', self.mock_results_dir]
|
| |
+ cmd += ['-r', root]
|
| |
+ if default_mock_resultdir is not True:
|
| |
+ cmd += ['--resultdir', self.mock_results_dir]
|
| |
|
| |
if shell:
|
| |
cmd.append('--shell')
|
| |
with this option we can avoid on every build of a different package or
version etc, create a new directory with builds results, the goal is save
disk space
Signed-off-by: Sérgio M. Basto sergio@serjux.com