steam-ihs: fix memleak on exception
[metze/wireshark/wip.git] / debian / wireshark-dev.prerm
1 #! /bin/bash
2 #
3 # Debian prerm script for Python x.y hierarchical modules
4 # Written by Gregor Hoffleit <flight@debian.org>
5 # Extended by Matthias Klose <doko@debian.org>
6 #
7
8 set -e
9
10 PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`
11
12 dpkg --listfiles $PACKAGE |
13         awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
14         xargs rm -f >&2
15
16 #DEBHELPER#
17