Skip to content

Commit 85e3795

Browse files
praiskupxsuchy
authored andcommitted
Identify buildroot package management earlier
It's useful to see the tooling used for buildroot installation before the installation begins.
1 parent 7e36e00 commit 85e3795

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

mock/py/mockbuild/backend.py

-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,6 @@ def build(self, srpm, timeout, check=True, spec=None):
261261
self.plugins.call_hooks('earlyprebuild')
262262
# intentionally we do not call bootstrap hook here - it does not have sense
263263

264-
self.buildroot.pkg_manager.log_package_management_packages()
265-
266264
baserpm = os.path.basename(srpm)
267265

268266
buildstate = "build phase for %s" % baserpm

mock/py/mockbuild/buildroot.py

+3
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ def _init(self, prebuild):
308308
self._setup_resolver_config()
309309
self._setup_katello_ca()
310310

311+
if prebuild:
312+
self.pkg_manager.log_package_management_packages()
313+
311314
if not self.chroot_was_initialized:
312315
self._setup_dbus_uuid()
313316
self._init_aux_files()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The info about package management tooling used to install the target buildroot
2+
has been updated to provide the info earlier, before the buildroot installation
3+
happens. Mock newly informs also about dnf5 presence.

0 commit comments

Comments
 (0)