Merge pull request #40122 from meaksh/2016.3-yum-downloadonly-support

Adding "pkg.install downloadonly=True" support to yum/dnf execution module
This commit is contained in:
Mike Place 2017-03-20 15:44:14 -06:00 committed by GitHub
commit 48843977c3

View file

@ -913,6 +913,7 @@ def install(name=None,
skip_verify=False,
pkgs=None,
sources=None,
downloadonly=False,
reinstall=False,
normalize=True,
**kwargs):
@ -970,6 +971,9 @@ def install(name=None,
skip_verify
Skip the GPG verification check (e.g., ``--nogpgcheck``)
downloadonly
Only download the packages, do not install.
version
Install a specific version of the package, e.g. 1.2.3-4.el5. Ignored
if "pkgs" or "sources" is passed.
@ -1200,6 +1204,8 @@ def install(name=None,
cmd.extend(args)
if skip_verify:
cmd.append('--nogpgcheck')
if downloadonly:
cmd.append('--downloadonly')
errors = []