combine checks for makepkg

pull/43/head
kewl fft 2020-05-31 19:19:31 -04:00
parent 3e5e49114d
commit d23b822be0
1 changed files with 2 additions and 4 deletions

View File

@ -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'