Installing an already installed package with paru gives an error
33Fraise33 opened this issue · comments
Gianni Stubbe commented
Hello,
Running the following play gives an error that there is nothing to do, this errors the play and stops the playbook. This should be ok and ignored.
- name: install paru
aur:
name:
- paru-bin # aur helper
state: latest
fatal: [arch_vm]: FAILED! => {"changed": false, "cmd": "env LC_ALL=C paru -S --noconfirm --needed --cleanafter paru-bin", "msg": ":: paru-bin-1.3.0-1 is up to date -- skipping", "rc": 1, "stderr": ":: paru-bin-1.3.0-1 is up to date -- skipping\n", "stderr_lines": [":: paru-bin-1.3.0-1 is up to date -- skipping"], "stdout": ":: Resolving dependencies...\n there is nothing to do\n", "stdout_lines": [":: Resolving dependencies...", " there is nothing to do"]}
kewl commented
I disagree, paru returns an error therefore the playbook should be stopped like after any process that exits with an error.
Gianni Stubbe commented
I just checked, this seems to be a bug with paru. For aur packages the exit status is 1 (non clean exit) but for main packages this is 0. I will open an issue there.
EDIT: I just checked and there is already an issue there:
Morganamilo/paru#270
Gianni Stubbe commented
This has been fixed in paru 1.4
Morganamilo/paru@64409bf