X-Git-Url: https://git.distorted.org.uk/~mdw/xfonts-traditional/blobdiff_plain/fb8fab66edb76e10899adb7b54c3fb296ec42504..6cc0cac2f514406b1435d0de7bfc1403ac242160:/debian/xfonts-traditional.prerm diff --git a/debian/xfonts-traditional.prerm b/debian/xfonts-traditional.prerm index 8b1ed6b..35f8eda 100755 --- a/debian/xfonts-traditional.prerm +++ b/debian/xfonts-traditional.prerm @@ -3,42 +3,53 @@ set -e . /usr/share/debconf/confmodule +#DEBHELPER# + +aliasfile=/etc/X11/fonts/misc/xfonts-base.alias + case "$1" in remove) echo 'Checking that "fixed" is not from xfonts-traditional...' - if grep '^fixed[ ][ ]*-trad-'; then + if grep '^fixed[ ][ ]*-trad-' $aliasfile \ + /usr/share/fonts/X11/misc/fonts.alias; then cat >&2 <<'END' + Removing xfonts-traditional would break your X server by removing "fixed". You should not remove xfonts-traditional while "fixed" refers to one of its fonts. You probably want to check the differences between /etc/X11/fonts/misc/xfonts-base.alias and xfonts-base.alias.not-trad, -and probably replace the former with the latter, and retry the removal. +reconcile any changes, and then run "update-fonts-alias misc". +After that you can retry the removal. END printf 'Continue anyway ? [n/y] ' - read x + read x