This file is indexed.

preinst is in fonts-hanazono 20170904-2.

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
#!/bin/sh

set -e

OLD_ALT_NAME="ttf-japanese-mincho"
OLD_FONT_ENTRY="/usr/share/fonts/truetype/hanazono/hanazono.ttf"

PKG="ttf-hanazono"

case "$1" in
install|upgrade)
	# do this on new installations, too, as these could be "upgrades"
	# from ttf-hanazono
	if dpkg --compare-versions "$2" lt "20120421-1.1~"; then
		update-alternatives --remove $OLD_ALT_NAME.ttf $OLD_FONT_ENTRY
	fi

esac


exit 0