X-Git-Url: https://git.distorted.org.uk/~mdw/xfonts-traditional/blobdiff_plain/4ff07717b0e4435f1f15fd5fcb762301be8822d0..88ca873dd3397fbdb0055230eb5dc2204766f16f:/debian/xfonts-traditional.prerm diff --git a/debian/xfonts-traditional.prerm b/debian/xfonts-traditional.prerm old mode 100644 new mode 100755 index a2786a6..53687d7 --- a/debian/xfonts-traditional.prerm +++ b/debian/xfonts-traditional.prerm @@ -3,43 +3,55 @@ set -e . /usr/share/debconf/confmodule +#DEBHELPER# + +/usr/share/xfonts-traditional/checkfiles prerm "$@" + case "$1" in remove) - echo 'Checking that "fixed" is not from xfonts-traditional..." + echo 'Checking that "fixed" is not from xfonts-traditional...' - if grep '^fixed[ ][ ]*-trad-'; then - cat >&2 <&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. +of its fonts. You probably want to check the differences between the +various /etc/X11/fonts/misc/xfonts-base.alias*, 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