Ejemplo n.º 1
0
    def PackagesSelection(self, data: Structure):
        """Set the packages selection.

        :param: a structure of the type PackagesSelectionData
        """
        self.implementation.set_packages_selection(
            PackagesSelectionData.from_structure(data))
Ejemplo n.º 2
0
def get_packages_data() -> PackagesSelectionData:
    """Get the DBus data with the packages configuration.

    :return: a packages configuration
    """
    payload_proxy = get_payload_proxy()

    if payload_proxy.Type != PAYLOAD_TYPE_DNF:
        return PackagesSelectionData()

    return PackagesSelectionData.from_structure(
        payload_proxy.PackagesSelection)
Ejemplo n.º 3
0
 def get_packages_selection(self) -> PackagesSelectionData:
     """Get the DBus data with the packages selection."""
     return PackagesSelectionData.from_structure(
         self.proxy.PackagesSelection
     )