.. _bodhi_directive: bodhi_directive - download updates from Bodhi +++++++++++++++++++++++++++++++++++++++++++++ .. versionadded:: 0.4 The bodhi directive interfaces with `Bodhi`_ to facilitate various actions. At the moment, the only action supported is downloading updates (i.e. all RPMs from all builds related to a specific update). .. _Bodhi: https://bodhi.fedoraproject.org Parameters ---------- .. raw:: html
parameter required description type default choices

action

yes

specify action type. The only action available at the moment is download.

str

    arch

    yes

    a list of architectures for which to download RPMs.

    Note: noarch RPMs are always automatically downloaded even when not requested, unless arch=[] and src=True.

    list of str

      src

      no

      download also src RPM files

      bool

      False

        update_id

        yes

        Bodhi update ID to download, e.g. FEDORA-2014-7485.

        str

          Return Values ------------- A dictionary containing following items: * ``downloaded_rpms``: (list of str) a list of local filenames of the downloaded RPMs Exceptions ---------- * :class:`.TaskotronDirectiveError`: if no update with ``update_id`` has been found * :class:`.TaskotronRemoteError`: if downloading failed * :class:`.TaskotronValueError`: if ``arch=[]`` and ``src=False``, therefore there is nothing to download Examples -------- Download a Bodhi update provided on the command line and then check it with rpmlint:: - name: download update from Bodhi bodhi: action: download update_id: ${update_id} arch: ${arch} - name: run rpmlint on downloaded rpms python: file: run_rpmlint.py callable: run workdir: ${workdir} export: rpmlint_output