Skip to content

Downloads Action

The downloads action includes additional packages to <profile>.downloads. These packages aren't installed by default during the installation, but are still included on the installation CD. This might be useful to include package dependencies, which for some reason aren't deduced properly. The installer will query these packages, whenever it encounters a missing package dependency.

Usage

Click on the to learn more about the action's options.

Downloads Action
actions:
  - action: downloads
    description: Additional packages #(1)!
    packages: # (2)! 
      - usbutils
      - acpi
  1. [Optional] Description, for documentation purposes
  2. [Required] List of packages

Implementation

DownloadsAction

Bases: Action

Downloads action

Source code in simple_cdd_yaml/actions.py
class DownloadsAction(Action):
    """ Downloads action """
    def perform_action(self, props):
        description = props.get('description', 'Additional packages')
        pkg_list = props['packages']
        self._print(' '.join(pkg_list), header='Extra packages:')
        downloads_pkg_list = '\n'.join(pkg_list)
        return f'# {description}\n{downloads_pkg_list}\n'

    def perform_debos_action(self, props):
        return None