preinst is in amule-utils 2.4.0~git20151120.0023527bc2-1ubuntu1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #! /bin/sh
set -e
DIVERSIONS=`env LC_ALL=C dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true
if [ -n "$DIVERSIONS" ]; then
echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do
dpkg-divert --package "$PACKAGE" --remove "$FILE"
done
for f in /usr/bin/ed2k* /usr/share/man/man1/ed2k*.1.gz; do
echo "Deleting $f"
rm -f "$f"
done
fi
|