Upstream tarball 9507
[amule.git] / debian / amule-ed2k.preinst
blob5b786d7d2ecbeefe15adc85e9ca2a3f9ee2a7ae9
1 #! /bin/sh
3 set +e # yada yada
5 DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by amule((-ed2k)|(-utils))?$'`
7 if [ -n "$DIVERSIONS" ]; then
8 echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do
9 dpkg-divert --package "$PACKAGE" --remove "$FILE"
10 done
12 for f in /usr/bin/ed2k* /usr/share/man/man1/ed2k*.1.gz; do
13 echo "Deleting $f"
14 rm -f "$f"
15 done
18 #DEBHELPER#