From 117b79b070fa50aa0e39a8c2ae3ef7d9eed9f067 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 24 Dec 2017 08:26:57 +0100 Subject: [PATCH] readme updated with auto functionning --- README.md | 4 ++-- aur.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 21fe5e7..e2c7468 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Ansible AUR package manager -Ansible module to use some AUR helpers. The following helpers are supported: -- [pacaur](https://github.com/rmarquis/pacaur) (default) +Ansible module to use some AUR helpers. The following helpers are supported and automatically selected following the below order: +- [pacaur](https://github.com/rmarquis/pacaur) - [trizen](https://github.com/trizen/trizen) - [yaourt](https://github.com/archlinuxfr/yaourt) - [yay](https://github.com/Jguer/yay) diff --git a/aur.py b/aur.py index 6efa8df..361714c 100644 --- a/aur.py +++ b/aur.py @@ -4,8 +4,8 @@ from ansible.module_utils.basic import * helper_cmd = { - 'trizen': ['env', 'LC_ALL=C', 'trizen', '-S', '--noconfirm', '--noedit', '--needed', '--aur'], 'pacaur': ['env', 'LC_ALL=C', 'pacaur', '-S', '--noconfirm', '--noedit', '--needed', '--aur'], + 'trizen': ['env', 'LC_ALL=C', 'trizen', '-S', '--noconfirm', '--noedit', '--needed', '--aur'], 'yaourt': ['env', 'LC_ALL=C', 'yaourt', '-S', '--noconfirm', '--needed'], 'yay': ['env', 'LC_ALL=C', 'yay', '-S', '--noconfirm'], }