preinst is in language-selector-common 0.79.4.
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 17 18 19 20 21 22 23 | #!/bin/sh
set -e
dpkg-maintscript-helper rm_conffile \
/etc/fonts/conf.avail/69-language-selector-ko-kr.conf 0.75 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/fonts/conf.avail/29-language-selector-ko-kr.conf 0.75 -- "$@"
case "$1" in
install|upgrade)
# old versions had a symlink to "none" meaning unconfigured
# new versions just don't have a symlink
if dpkg --compare-versions "$2" lt "0.1.27"; then
if [ -L /etc/fonts/language-selector.conf ]; then
if [ "$(readlink /etc/fonts/language-selector.conf)" = "/usr/share/language-selector/fontconfig/none" ]; then
rm /etc/fonts/language-selector.conf
fi
fi
fi
esac
|