Add pamac support

This commit is contained in:
Jeroen Schepens
2020-08-16 17:48:02 +02:00
parent 5aebeda3d4
commit 354d13642e
2 changed files with 15 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ options:
description:
- The tool to use, 'auto' uses the first known helper found and makepkg as a fallback.
default: auto
choices: [ auto, yay, pacaur, trizen, pikaur, aurman, makepkg ]
choices: [ auto, yay, pacaur, trizen, pikaur, pamac, aurman, makepkg ]
extra_args:
description:
@@ -98,11 +98,12 @@ use_cmd = {
'pacaur': ['pacaur', '-S', '--noconfirm', '--noedit', '--needed'],
'trizen': ['trizen', '-S', '--noconfirm', '--noedit', '--needed'],
'pikaur': ['pikaur', '-S', '--noconfirm', '--noedit', '--needed'],
'pamac': ['pamac', 'install', '--no-confirm'],
'aurman': ['aurman', '-S', '--noconfirm', '--noedit', '--needed', '--skip_news', '--pgp_fetch', '--skip_new_locations'],
'makepkg': ['makepkg', '--syncdeps', '--install', '--noconfirm', '--needed']
}
has_aur_option = ['yay', 'pacaur', 'trizen', 'pikaur', 'aurman']
has_aur_option = ['yay', 'pacaur', 'trizen', 'pikaur', 'pamac', 'aurman']
def package_installed(module, package):