diff --git a/mock/py/mockbuild/backend.py b/mock/py/mockbuild/backend.py index bd9af6129..f9ad24d91 100644 --- a/mock/py/mockbuild/backend.py +++ b/mock/py/mockbuild/backend.py @@ -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 diff --git a/mock/py/mockbuild/buildroot.py b/mock/py/mockbuild/buildroot.py index 4a87f3aab..d34e9983b 100644 --- a/mock/py/mockbuild/buildroot.py +++ b/mock/py/mockbuild/buildroot.py @@ -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() diff --git a/releng/release-notes-next/package-management-logging.feature b/releng/release-notes-next/package-management-logging.feature new file mode 100644 index 000000000..9a1d595f9 --- /dev/null +++ b/releng/release-notes-next/package-management-logging.feature @@ -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.