Default to libdnf5 backend when available
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:
parent
e030ee942e
commit
c97ddae309
2 changed files with 2 additions and 2 deletions
|
|
@ -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"])
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ class MissingBackendError(Exception):
|
|||
|
||||
|
||||
BACKENDS: dict[str, ModuleType] = {
|
||||
"dnf": dnf,
|
||||
"libdnf5": libdnf5,
|
||||
"dnf": dnf,
|
||||
}
|
||||
DEFAULT_BACKEND = "dnf"
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue