pyanaconda.modules.payloads.payload.dnf.dnf_interface

Classes

DNFInterface

DBus interface for DNF payload module.

Module Contents

class pyanaconda.modules.payloads.payload.dnf.dnf_interface.DNFInterface[source]

Bases: pyanaconda.modules.payloads.payload.payload_base_interface.PayloadBaseInterface

DBus interface for DNF payload module.

connect_signals()[source]

Connect the signals.

property Repositories: List[Structure][source]

The configuration of repositories.

Returns:

a list of structures of the type RepoConfigurationData

Return type:

List[Structure]

property PackagesConfiguration: Structure[source]

The packages configuration.

Returns:

a structure of the type PackagesConfigurationData

Return type:

Structure

property PackagesSelection: Structure[source]

The packages selection.

Returns:

a structure of the type PackagesSelectionData

Return type:

Structure

property PackagesKickstarted: Bool[source]

Are the packages set from a kickstart?

FIXME: This is a temporary property.

Returns:

True or False

Return type:

Bool

GetAvailableRepositories()[source]

Get a list of available repositories.

Returns:

a list with names of available repositories

Return type:

List[Str]

GetEnabledRepositories()[source]

Get a list of enabled repositories.

Returns:

a list with names of enabled repositories

Return type:

List[Str]

GetDefaultEnvironment()[source]

Get a default environment.

Returns:

an identifier of an environment or an empty string

Return type:

Str

GetEnvironments()[source]

Get a list of environments defined in comps.xml files.

Returns:

a list with identifiers of environments

Return type:

List[Str]

ResolveEnvironment(environment_spec)[source]

Translate the given specification to an environment identifier.

Parameters:

environment_spec (Str) – an environment specification

Returns:

an identifier of an environment or an empty string

Return type:

Str

GetEnvironmentData(environment_spec)[source]

Get data about the specified environment.

Parameters:

environment_spec (Str) – an environment specification

Returns:

a data structure defined by CompsEnvironmentData

Raises:

UnknownCompsEnvironmentError – if the environment is unknown

Return type:

Structure

ResolveGroup(group_spec)[source]

Translate the given specification into a group identifier.

Parameters:

group_spec (Str) – a group specification

Returns:

an identifier of a group or an empty string

Return type:

Str

GetGroupData(group_spec)[source]

Get data about the specified group.

Parameters:

group_spec (Str) – a group specification

Returns:

a data structure defined by CompsGroupData

Raises:

UnknownCompsGroupError – if the group is unknown

Return type:

Structure

VerifyRepomdHashesWithTask()[source]

Verify a hash of the repomd.xml file for each enabled repository with a task.

This task tests if URL links from active repositories can be reached. It is useful when network settings are changed so that we can verify if repositories are still reachable. The task returns a validation report.

Returns:

a DBus path of the task

Return type:

ObjPath

ValidatePackagesSelectionWithTask(data)[source]

Validate the specified packages selection.

Return a task for validation of the software selection. The result of the task is a validation report.

Parameters:

data (Structure) – a structure of the type PackagesSelectionData

Returns:

a DBus path of a task

Return type:

ObjPath

GetRepoConfigurations()[source]

Get RepoConfigurationData structures for all attached sources.

FIXME: This is a temporary solution. Will be removed after DNF payload logic is moved.

Return type:

List[Structure]

MatchAvailablePackages(pattern)[source]

Find available packages that match the specified pattern.

Parameters:

pattern (Str) – a pattern for package names

Returns:

a list of matched package names

Return type:

List[Str]