config is in xfonts-wqy 1.0.0~rc1-1.
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 | #! /bin/sh
set -e
. /usr/share/debconf/confmodule
CONFDIR=/etc/fonts/conf.d
wqy_old_conf="70-debconf-wqy.conf"
wqy_conf="85-xfonts-wqy.conf"
if [ -z "$2" ]; then
FIRSTINST=yes
fi
if [ -z "$FIRSTINST" ] && [ ! -h $CONFDIR/$wqy_conf ] && [ ! -h $CONFDIR/$wqy_old_conf ]; then
# We are upgrading and no previous link
enable_wqy="false"
else
# First install or already linked
enable_wqy="true"
fi
if [ "$1" = "configure" ]; then
# if we're upgrading from an old version without fontconfig stuff.
if [ -z "$FIRSTINST" ] && dpkg --compare-versions "$2" le 0.7.0-5-1; then
enable_wqy="true"
fi
fi
db_set xfonts-wqy/enable_wqy "$enable_wqy"
db_input low xfonts-wqy/enable_wqy || true
db_go
|