freebsd-ports/sysutils/py-salt-2019/files/patch-salt_loader.py
Kirill Ponomarev af84cfffe3 Update py-salt to version 3000 and repo copy py-salt to py-salt-2019.
We decided to run both versions for a while until 2019 is EOL and give people
the possibility to run newest 3000 version.

Approved by:	maintainer
2020-06-02 11:23:53 +00:00

11 lines
495 B
Python

--- salt/loader.py
+++ salt/loader.py
@@ -1240,7 +1240,7 @@
try:
pycache_files = [
os.path.join('__pycache__', x) for x in
- sorted(os.listdir(os.path.join(mod_dir, '__pycache__')))
+ sorted(os.listdir(os.path.join(mod_dir, '__pycache__'))) if not x.endswith('opt-1.pyc') and not x.endswith('opt-2.pyc')
]
except OSError:
pass