File: amule-utils.preinst

package info (click to toggle)
amule 1%3A2.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 26,632 kB
  • sloc: cpp: 115,463; ansic: 8,603; sh: 6,244; makefile: 1,695; php: 1,680; perl: 958; yacc: 820; ruby: 729; objc: 692; lex: 626; java: 413; xml: 27; python: 26; awk: 21; sed: 16
file content (18 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /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

#DEBHELPER#