Aplly those parts of ethereal_0.10.12-3.diff.gz
[obnox/wireshark/wip.git] / debian / ethereal-dev.postinst
index 4dca3e4d79be196e2b8571ffec61bbb222eed7e8..ff3d1def8e7d6586cf62d0924ff6437618c5ba63 100644 (file)
@@ -19,6 +19,25 @@ exit 0
 
 #! /bin/sh -e
 
+PYTHON=python2.3
+
+case "$1" in
+       configure|abort-upgrade|abort-remove|abort-deconfigure)
+               /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q \
+                       /usr/lib/$PYTHON/site-packages/
+       ;;
+       *)
+               echo "postinst called with unknown argument \`$1'" >&2
+               exit 1
+       ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
+#! /bin/sh -e
+
 PYTHON=python2.2
 
 case "$1" in