aur: Fix preexec conditional execution

This commit is contained in:
2025-01-09 17:24:58 +01:00
parent d431c74ed2
commit 133aa0fa44

View File

@@ -392,9 +392,7 @@
chdir: "{{ item.1.stat.path | dirname }}"
become_user: makepkg
become: true
when:
- not item[0].stat.exists
- item[0].stat.checksum|default('') != item[1].stat.checksum
when: not item[0].stat.exists or (item[0].stat.checksum|default('') != item[1].stat.checksum)
loop: "{{ preexec_before.results| reject('skipped')|zip(preexec_after.results| reject('skipped')) }}"
loop_control:
label: "{{ item.1.stat.path }}"