Clean up pycache files before (re)installing

This commit is contained in:
Joshua Boniface 2019-12-18 18:36:48 -05:00
parent 2b1b78622e
commit 669a8fbacd
1 changed files with 5 additions and 0 deletions

5
debian/pvc-daemon.preinst vendored Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
# Remove any cached CPython directories or files
echo "Cleaning up existing CPython files"
find /usr/share/pvc -type d -name "__pycache__" -exec rm -rf {} \; &>/dev/null || true