kewlfft / ansible-aur

Ansible module to manage packages from the AUR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing an already installed package with paru gives an error

33Fraise33 opened this issue · comments

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"]}
commented

I disagree, paru returns an error therefore the playbook should be stopped like after any process that exits with an error.

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

This has been fixed in paru 1.4
Morganamilo/paru@64409bf