]> git.saurik.com Git - wxWidgets.git/blobdiff - debian/libwxgtk-python.prerm
gcc-3.4 compilation fix
[wxWidgets.git] / debian / libwxgtk-python.prerm
index 8417f23f426cc27f3c6ff0ed03fe3a0833878095..b62b9beb4540982cbc4f0580b42b041ff8d14d86 100644 (file)
@@ -2,8 +2,8 @@
 
 set -e
 
-WXPYTHONDIR="/usr/lib/python1.5/site-packages/wxPython"
-find ${WXPYTHONDIR} -name "*.py?" -exec rm -f {} \;
+PACKAGE="libwxgtk=V.=SO-python"
+dpkg --listfiles $PACKAGE | awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | xargs rm -f >&2
 
 #DEBHELPER#