distgit_directive - download files from distgit

New in version 0.3.16.

Download files from Fedora package repository (usually called ‘distgit’) hosted at http://pkgs.fedoraproject.org/. Any files hosted at that repository can be downloaded for a chosen package.

Parameters

parameter required description type default choices

localpath

no

a local path of downloaded file. If not provided, path from distgit will be used. Example: [specs/xchat.spec]

list of str

    package

    yes

    N(E)VR of a package. Package dist tag determines the git branch used for file download. Example: xchat-2.8.8-21.fc20

    str

      path

      yes

      files (directories not supported at the moment) to be downloaded from distgit. Example: [xchat.spec]

      list of str

        target_dir

        no

        directory into which to download files

        str

        ${workdir}

          Return Values

          A dictionary containing following items:

          • downloaded_files: (list of str) a list of local filenames of the downloaded files

          Exceptions

          Examples

          A task needs to download a spec file and httpd configuration check to run a check on those files:

          - name: download spec file and httpd conf
            distgit:
              package: yourls-1.7-3.20150410gitabc7d6c.fc22
              path:
                  - yourls.spec
                  - yourls-httpd.conf
              localpath:
                  - download/yourls_downloaded.spec
                  - download/yourls-httpd_downloaded.conf