Skip to content

Commit

Permalink
Document reason to run it in chroot
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Philippsen <[email protected]>
  • Loading branch information
nphilipp committed Dec 7, 2023
1 parent f5e4f76 commit 9cbc93d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mock/py/mockbuild/plugins/rpmautospec.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ def attempt_process_distgit(
command += [chroot_sources_spec] # <input-spec>
command += [chroot_spec] # <output-spec>

# Run the rpmautospec tool in the chroot sandbox. This minimizes
# external dependencies in the host, e.g. the Koji build system. As a
# bonus, spec files will be processed in the environment they will be
# built for, reducing the impact of the host system on the outcome,
# leading to more deterministic results and better repeatable builds.
self.buildroot.doChroot(
command,
shell=False,
Expand Down

0 comments on commit 9cbc93d

Please sign in to comment.