From 85e3795ff19e5033d4eb7fd6f846b9cf7cafeabe Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 13 Oct 2023 14:44:34 +0200 Subject: [PATCH] Identify buildroot package management earlier It's useful to see the tooling used for buildroot installation before the installation begins. --- mock/py/mockbuild/backend.py | 2 -- mock/py/mockbuild/buildroot.py | 3 +++ releng/release-notes-next/package-management-logging.feature | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 releng/release-notes-next/package-management-logging.feature 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.