Skip to content

Commit

Permalink
Identify buildroot package management earlier
Browse files Browse the repository at this point in the history
It's useful to see the tooling used for buildroot installation before
the installation begins.
  • Loading branch information
praiskup committed Oct 13, 2023
1 parent 9d30565 commit 7702cb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mock/py/mockbuild/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,6 @@ def build(self, srpm, timeout, check=True, spec=None):
self.plugins.call_hooks('earlyprebuild')
# intentionally we do not call bootstrap hook here - it does not have sense

self.buildroot.pkg_manager.log_package_management_packages()

baserpm = os.path.basename(srpm)

buildstate = "build phase for %s" % baserpm
Expand Down
3 changes: 3 additions & 0 deletions mock/py/mockbuild/buildroot.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ def _init(self, prebuild):
self._setup_resolver_config()
self._setup_katello_ca()

if prebuild:
self.pkg_manager.log_package_management_packages()

if not self.chroot_was_initialized:
self._setup_dbus_uuid()
self._init_aux_files()
Expand Down
3 changes: 3 additions & 0 deletions releng/release-notes-next/package-management-logging.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The info about package management tooling used to install the target buildroot
has been updated to provide the info earlier, before the buildroot installation
happens. Mock newly informs also about dnf5 presence.

0 comments on commit 7702cb3

Please sign in to comment.