pyanaconda.modules.payloads.payload.dnf.dnf_interface ===================================================== .. py:module:: pyanaconda.modules.payloads.payload.dnf.dnf_interface Classes ------- .. autoapisummary:: pyanaconda.modules.payloads.payload.dnf.dnf_interface.DNFInterface Module Contents --------------- .. py:class:: DNFInterface Bases: :py:obj:`pyanaconda.modules.payloads.payload.payload_base_interface.PayloadBaseInterface` DBus interface for DNF payload module. .. py:method:: connect_signals() Connect the signals. .. py:property:: Repositories :type: List[Structure] The configuration of repositories. :return: a list of structures of the type RepoConfigurationData .. py:property:: PackagesConfiguration :type: Structure The packages configuration. :return: a structure of the type PackagesConfigurationData .. py:property:: PackagesSelection :type: Structure The packages selection. :return: a structure of the type PackagesSelectionData .. py:property:: PackagesKickstarted :type: Bool Are the packages set from a kickstart? FIXME: This is a temporary property. :return: True or False .. py:method:: GetAvailableRepositories() Get a list of available repositories. :return: a list with names of available repositories .. py:method:: GetEnabledRepositories() Get a list of enabled repositories. :return: a list with names of enabled repositories .. py:method:: GetDefaultEnvironment() Get a default environment. :return: an identifier of an environment or an empty string .. py:method:: GetEnvironments() Get a list of environments defined in comps.xml files. :return: a list with identifiers of environments .. py:method:: ResolveEnvironment(environment_spec) Translate the given specification to an environment identifier. :param environment_spec: an environment specification :return: an identifier of an environment or an empty string .. py:method:: GetEnvironmentData(environment_spec) Get data about the specified environment. :param environment_spec: an environment specification :return: a data structure defined by CompsEnvironmentData :raise UnknownCompsEnvironmentError: if the environment is unknown .. py:method:: ResolveGroup(group_spec) Translate the given specification into a group identifier. :param group_spec: a group specification :return: an identifier of a group or an empty string .. py:method:: GetGroupData(group_spec) Get data about the specified group. :param group_spec: a group specification :return: a data structure defined by CompsGroupData :raise UnknownCompsGroupError: if the group is unknown .. py:method:: VerifyRepomdHashesWithTask() 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. :return: a DBus path of the task .. py:method:: ValidatePackagesSelectionWithTask(data) Validate the specified packages selection. Return a task for validation of the software selection. The result of the task is a validation report. :param data: a structure of the type PackagesSelectionData :return: a DBus path of a task .. py:method:: GetRepoConfigurations() Get RepoConfigurationData structures for all attached sources. FIXME: This is a temporary solution. Will be removed after DNF payload logic is moved. .. py:method:: MatchAvailablePackages(pattern) Find available packages that match the specified pattern. :param pattern: a pattern for package names :return: a list of matched package names