mirror of https://github.com/kewlfft/ansible-aur
combine checks for makepkg
parent
3e5e49114d
commit
d23b822be0
|
@ -275,10 +275,8 @@ def make_module():
|
|||
if params['use'] == 'auto' and params['extra_args'] is not None:
|
||||
module.fail_json(msg="You must specify a tool other than 'auto' to use the 'extra_args' option.")
|
||||
|
||||
if params['use'] != 'makepkg' and params['skip_pgp_check']:
|
||||
module.fail_json(msg="You must use 'makepkg' to use the 'skip_pgp_check' option.")
|
||||
if params['use'] != 'makepkg' and params['ignore_arch']:
|
||||
module.fail_json(msg="You must use 'makepkg' to use the 'ignore_arch' option.")
|
||||
if params['use'] != 'makepkg' and (params['skip_pgp_check'] or params['ignore_arch']):
|
||||
module.fail_json(msg="You must use 'makepkg' to use this option.")
|
||||
|
||||
if params['use'] == 'auto':
|
||||
use = 'makepkg'
|
||||
|
|
Loading…
Reference in New Issue