preinst is in language-selector-common 0.129.
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 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/bin/sh
set -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/fonts/conf.avail/69-language-selector-ko-kr.conf 0.75 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/fonts/conf.avail/29-language-selector-ko-kr.conf 0.75 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/fonts/conf.avail/69-language-selector-ka-ge.conf 0.86~ -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/fonts/conf.avail/69-language-selector-ja-jp.conf 0.100~ -- "$@"
# End automatically added section
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 -- "$@"
dpkg-maintscript-helper rm_conffile \
/etc/fonts/conf.avail/69-language-selector-ka-ge.conf 0.86~ -- "$@"
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
# Remove old symlinks now that the hack has gone away. This should be in the
# preinst becaue we're unconditionally installing symlinks with the same
# name, for now.
if dpkg --compare-versions "$2" lt-nl "0.86"; then
rm -f /etc/fonts/conf.d/69-language-selector-*.conf
fi
;;
esac
|