fedrq.backends.libdnf5.backend¶
This module contains a fedrq backend (i.e. an implementation of the
fedrq.backends.base.BackendMod
interface)
that uses the libdnf5 Python bindings.
BaseMaker ¶
BaseMaker(
base: libdnf5.base.Base | None = None,
*,
initialized: bool = False,
config_loaded: bool = False
)
Bases: BaseMakerBase
Create a Base object and load repos
Initialize and configure the base object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
base
|
Base | None
|
Pass in a |
None
|
initialized
|
bool
|
Set to True if |
False
|
config_loaded
|
bool
|
Set to True if base.load_config_from_file() has already been
called. Only applies when |
False
|
Source code in src/fedrq/backends/libdnf5/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 $basearch) will be substituted automatically. |
{}
|
Source code in src/fedrq/backends/libdnf5/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/libdnf5/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/libdnf5/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/libdnf5/backend/__init__.py
enable_source_repos ¶
fill_sack ¶
Fill the sack and returns the 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/libdnf5/backend/__init__.py
load_changelogs ¶
load_filelists ¶
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/libdnf5/backend/__init__.py
repolist ¶
set ¶
Source code in src/fedrq/backends/libdnf5/backend/__init__.py
set_var ¶
Package ¶
Bases: Package
, PackageCompat
DEBUGSOURCE_SUFFIX
class-attribute
instance-attribute
¶
libdnf5.rpm.Package subclass with strong dnf.package.Package compatability
remote_location ¶
remote_location(
schemes: Collection[str] | None = (
"http",
"ftp",
"file",
"https",
)
) -> str | None
Source code in src/fedrq/backends/libdnf5/backend/__init__.py
PackageQuery ¶
Bases: PackageQuery
, PackageQueryCompat[Package]
difference ¶
filter ¶
filter_pkg ¶
Source code in src/fedrq/backends/libdnf5/backend/__init__.py
filterm ¶
intersection ¶
Repoquery ¶
Bases: RepoqueryBase[Package]
Source code in src/fedrq/backends/libdnf5/backend/__init__.py
query ¶
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
) -> PackageQuery
Source code in src/fedrq/backends/libdnf5/backend/__init__.py
get_releasever
cached
¶
Return the system releasever