Default to libdnf5 backend when available
All checks were successful
builds.sr.ht/epel9 Job completed
builds.sr.ht/mockbuild Job completed
builds.sr.ht/main Job completed
builds.sr.ht/test Job completed

dnf4 is deprecated and will no longer be able to read system repository
definitions starting in F45 due to
https://fedoraproject.org/wiki/Changes/RelocateRpmRepoConfigsToUsr.
This commit is contained in:
Maxwell G 2026-08-14 14:36:40 -05:00
commit c97ddae309
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ def coverage(session: nox.Session):
@nox.session(venv_backend=None)
def covtest(session: nox.Session):
session.run("rm", "-f", *iglob(".nox/*/tmp/.coverage"), external=True)
for name in ("dnf_test", "libdnf5_test", "pydanticv1_test", "coverage"):
for name in ("libdnf5_test", "dnf_test", "pydanticv1_test", "coverage"):
session.notify(name, [*session.posargs, "--cov"])

View file

@ -26,8 +26,8 @@ class MissingBackendError(Exception):
BACKENDS: dict[str, ModuleType] = {
"dnf": dnf,
"libdnf5": libdnf5,
"dnf": dnf,
}
DEFAULT_BACKEND = "dnf"
LOG = logging.getLogger(__name__)