chiark / gitweb /
wip packaging
[xfonts-traditional] / debian / xfonts-traditional.prerm
old mode 100644 (file)
new mode 100755 (executable)
index 4dc7f2c..5cb9a99
@@ -11,16 +11,22 @@ remove)
 
        if grep '^fixed[         ][      ]*-trad-'; 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.
+
 END
-               exit 1
+               printf 'Continue anyway ? [n/y] '
+               read x
+               case "$x" in
+               y*|Y*)  ;;
+               *)      exit 1 ;;
+               esac
        fi
 
-       ;;
-
        find /usr/share/fonts/X11 /usr/local/share/fonts/X11 \
                   -type f \
                \( -name xfonts-traditional.log -o \
@@ -34,4 +40,6 @@ END
                   -name trad--\*.pcf.gz \
                -print0 | xargs -0r rm
 
+       ;;
+
 esac