fedrq.backends.dnf.backend¶
This module contains a fedrq backend (i.e. an implementation of the
fedrq.backends.base.BackendMod
interface)
that uses the dnf Python bindings.
PackageQueryAlias
module-attribute
¶
BaseMaker ¶
Bases: BaseMakerBase
Create a Base object and load repos
Initialize and configure the base object.
Source code in src/fedrq/backends/dnf/backend/__init__.py
create_repo ¶
Add a Repo object to the repo sack and configure it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kwargs
|
Any
|
key-values options that should be set on the Repo object values
(like |
{}
|
Source code in src/fedrq/backends/dnf/backend/__init__.py
disable_repo ¶
Disable a repo by its id.
Raise a ValueError if the repoid is not in self.base
’s configuration
when ignore_missing is False.
Source code in src/fedrq/backends/dnf/backend/__init__.py
enable_repo ¶
Enable a repo by its id.
Raise a ValueError if the repoid is not in self.base
’s configuration.
Source code in src/fedrq/backends/dnf/backend/__init__.py
enable_repos ¶
Enable a list of repositories by their repoid.
Raise a ValueError if the repoid is not in self.base
’s configuration.
Source code in src/fedrq/backends/dnf/backend/__init__.py
enable_source_repos ¶
fill_sack ¶
Fill the sack and returns the dnf.Base object. The repository configuration shouldn’t be manipulated after this.
Note that the _cachedir
arg is private and subject to removal.
Source code in src/fedrq/backends/dnf/backend/__init__.py
load_changelogs ¶
load_filelists ¶
Source code in src/fedrq/backends/dnf/backend/__init__.py
read_repofile ¶
read_system_repos ¶
Load system repositories into the base object. By default, they are all disabled even if ‘enabled=1’ is in the repository configuration.
Source code in src/fedrq/backends/dnf/backend/__init__.py
repolist ¶
set ¶
NEVRAForms ¶
Repoquery ¶
Bases: RepoqueryBase[PackageCompat]
Source code in src/fedrq/backends/dnf/backend/__init__.py
resolve_pkg_specs ¶
resolve_pkg_specs(
specs: Collection[str],
resolve: bool = False,
latest: int | None = None,
with_src: bool = True,
*,
with_filenames: bool | None = None,
with_provides: bool | None = None,
resolve_provides: bool | None = None,
nevra_forms: list[NEVRAForms | int] | None = None
)