diff options
Diffstat (limited to 'autoscripts/prerm-pyclean')
-rw-r--r-- | autoscripts/prerm-pyclean | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoscripts/prerm-pyclean b/autoscripts/prerm-pyclean new file mode 100644 index 0000000..a208c9b --- /dev/null +++ b/autoscripts/prerm-pyclean @@ -0,0 +1,8 @@ +if command -v pyclean >/dev/null 2>&1; then + pyclean -p #PACKAGE# #ARGS# +else + dpkg -L #PACKAGE# | grep \.py$ | while read file + do + rm -f "${file}"[co] >/dev/null + done +fi |