Skip to content

Commit

Permalink
Avoid using deprecated mock option
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Forró <nforro@redhat.com>
  • Loading branch information
nforro committed Feb 25, 2021
1 parent 0be4d04 commit ac7cdf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rebasehelper/plugins/build_tools/rpm/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _build_rpm(cls, srpm, results_dir, rpm_results_dir, root=None, arch=None, bu
logger.info("Building RPMs")
output = os.path.join(results_dir, "mock_output.log")

cmd = [cls.CMD, '--old-chroot', '--rebuild', srpm, '--resultdir', results_dir]
cmd = [cls.CMD, '--isolation', 'simple', '--rebuild', srpm, '--resultdir', results_dir]
if root is not None:
cmd.extend(['--root', root])
if arch is not None:
Expand Down
2 changes: 1 addition & 1 deletion rebasehelper/plugins/build_tools/srpm/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _build_srpm(cls, spec, workdir, results_dir, srpm_results_dir, srpm_builder_

path_to_sources = os.path.join(workdir, 'SOURCES')

cmd = [cls.CMD, '--old-chroot', '--buildsrpm']
cmd = [cls.CMD, '--isolation', 'simple', '--buildsrpm']
if srpm_builder_options is not None:
cmd.extend(srpm_builder_options)
cmd.extend(['--spec', spec])
Expand Down

0 comments on commit ac7cdf9

Please sign in to comment.