Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log out also dnf5 versions, and log earlier #1244

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 2 additions & 1 deletion mock/py/mockbuild/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ def log_package_management_packages(self):
"rpm", "-q",
"rpm", "rpm-sequoia",
"python3-dnf", "python3-dnf-plugins-core",
"yum", "yum-utils"
"yum", "yum-utils",
"dnf5", "dnf5-plugins",
]


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.