Check if spyder is installed before patching spyder

This commit is contained in:
Raphael Dannecker 2025-04-07 08:46:03 +02:00
parent f8cbb53cb7
commit 2074c49c3e

View file

@ -60,7 +60,13 @@
line: DefaultTimeoutStopSec=5s
insertafter: '^#DefaultTimeoutStopSec=.*'
- name: Check if spyder is installed
ansible.builtin.stat:
path: /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py
register: spyder
- name: Patch spyder to fix 'file-has-changed' issues on CIFS
ansible.posix.patch:
src: spyder.patch
dest: /usr/lib/python3/dist-packages/spyder/plugins/editor/widgets/editor.py
when: spyder.stat.exists