blob: 2b6ede305231a16b192a7a41957bb5162d68dba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
if [ "$1" = install ] || [ "$1" = upgrade ]; then
if [ -e "#OLD#" ]; then
if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \
"`dpkg-query -W -f='${Conffiles}' #PACKAGE# | sed -n -e \"\\\\' #OLD#'s/.* //p\"`" ]
then
rm -f "#OLD#"
fi
fi
if [ -L "#RULE#" ]; then
rm -f "#RULE#"
fi
fi
|