Merge pull request #30 from neilmunday/master

Added ignore_arch option for makepkg
pull/34/head
kewl 2020-04-12 19:24:49 -04:00 committed by GitHub
commit e643e8f450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,13 @@ options:
description:
- Name or list of names of the package(s) to install or upgrade.
ignore_arch:
description:
- Set to yes to skip architecture check.
Only valid with makepkg.
type: bool
default: no
upgrade:
description:
- Whether or not to upgrade whole system.
@ -145,6 +152,8 @@ def install_with_makepkg(module, package):
os.chdir(format(result['Name']))
if module.params['skip_pgp_check']:
use_cmd['makepkg'].append('--skippgpcheck')
if module.params['ignore_arch']:
use_cmd['makepkg'].append('-A')
rc, out, err = module.run_command(use_cmd['makepkg'], check_rc=True)
os.chdir(current_path)
return (rc, out, err)
@ -201,6 +210,10 @@ def main():
'name': {
'type': 'list',
},
'ignore_arch' : {
'default': False,
'type': 'bool',
},
'upgrade': {
'default': False,
'type': 'bool',