mirror of
				https://github.com/kewlfft/ansible-aur.git
				synced 2025-11-04 10:02:30 +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:
 | 
					    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.")
 | 
					        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']:
 | 
					    if params['use'] != 'makepkg' and (params['skip_pgp_check'] or params['ignore_arch']):
 | 
				
			||||||
        module.fail_json(msg="You must use 'makepkg' to use the 'skip_pgp_check' option.")
 | 
					        module.fail_json(msg="You must use 'makepkg' to use this 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'] == 'auto':
 | 
					    if params['use'] == 'auto':
 | 
				
			||||||
        use = 'makepkg'
 | 
					        use = 'makepkg'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user