Before this change, the host status counted only dnf's upstream default installonlypkgs (and what dnf.conf adds) as packages installed side by side on purpose. Oracle builds kernel-uek and its parts into libdnf's defaults, and the UEK packages provide nothing of upstream's list. So every Oracle Linux host with more than one UEK kernel was reported as an interrupted transaction.
_RPM_PART now also asks the host's libdnf for the defaults it was built with (libdnf.conf.ConfigMain().installonlypkgs(), through platform-python or python3). Upstream's list stays the floor where libdnf cannot be asked (dnf 5, yum).
The Python interpreter is looked up once and serves the dnf history read too.
The ConfigMain is held in a name. Reading an option from a temporary one crashed platform-python on the host.
Tests: a real-shell test with a stand-in libdnf.conf whose defaults name an extra kernel package. Full suite: 1615 passed; ruff and mypy are clean.
Live check: the new command ran on build-arm-01 (Oracle Linux 9.8, aarch64, dnf 4.14.0). All eight kernel-uek* packages are now installonly, and the reading is interrupted=False.
4.36.1: patch release, no API change.
Closes #107
Before this change, the host status counted only dnf's upstream default `installonlypkgs` (and what `dnf.conf` adds) as packages installed side by side on purpose. Oracle builds `kernel-uek` and its parts into libdnf's defaults, and the UEK packages provide nothing of upstream's list. So every Oracle Linux host with more than one UEK kernel was reported as an interrupted transaction.
- `_RPM_PART` now also asks the host's libdnf for the defaults it was built with (`libdnf.conf.ConfigMain().installonlypkgs()`, through platform-python or python3). Upstream's list stays the floor where libdnf cannot be asked (dnf 5, yum).
- The Python interpreter is looked up once and serves the dnf history read too.
- The `ConfigMain` is held in a name. Reading an option from a temporary one crashed platform-python on the host.
**Tests:** a real-shell test with a stand-in `libdnf.conf` whose defaults name an extra kernel package. Full suite: 1615 passed; ruff and mypy are clean.
**Live check:** the new command ran on build-arm-01 (Oracle Linux 9.8, aarch64, dnf 4.14.0). All eight `kernel-uek*` packages are now installonly, and the reading is `interrupted=False`.
4.36.1: patch release, no API change.
The installonly packages were dnf's upstream defaults plus dnf.conf's.
Oracle builds kernel-uek and its parts into libdnf's defaults, and the
UEK packages provide nothing of upstream's list, so every host with more
than one UEK kernel was reported as left halfway. The defaults are now
also asked of the host's libdnf through its Python binding; upstream's
list stays the floor for dnf 5 and yum.
Closes#107
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #107
Before this change, the host status counted only dnf's upstream default
installonlypkgs(and whatdnf.confadds) as packages installed side by side on purpose. Oracle buildskernel-uekand its parts into libdnf's defaults, and the UEK packages provide nothing of upstream's list. So every Oracle Linux host with more than one UEK kernel was reported as an interrupted transaction._RPM_PARTnow also asks the host's libdnf for the defaults it was built with (libdnf.conf.ConfigMain().installonlypkgs(), through platform-python or python3). Upstream's list stays the floor where libdnf cannot be asked (dnf 5, yum).ConfigMainis held in a name. Reading an option from a temporary one crashed platform-python on the host.Tests: a real-shell test with a stand-in
libdnf.confwhose defaults name an extra kernel package. Full suite: 1615 passed; ruff and mypy are clean.Live check: the new command ran on build-arm-01 (Oracle Linux 9.8, aarch64, dnf 4.14.0). All eight
kernel-uek*packages are now installonly, and the reading isinterrupted=False.4.36.1: patch release, no API change.