mirror of
https://github.com/kewlfft/ansible-aur.git
synced 2025-07-27 14:03:51 +03:00
combine checks for makepkg
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user