diff options
author | joey <joey> | 2001-05-11 17:44:02 +0000 |
---|---|---|
committer | joey <joey> | 2001-05-11 17:44:02 +0000 |
commit | 7b068400acb737a64e1f8e5c6b23d72b8dd5c1eb (patch) | |
tree | aca0c4615d54bd94ec588717a7009d1766acc5a4 /autoscripts | |
parent | 653a744c8e6b4011874b79757129dae45f5bc229 (diff) | |
download | debhelper-7b068400acb737a64e1f8e5c6b23d72b8dd5c1eb.tar.gz |
r465: * Modified the postrm fragment for dh_installxfonts to not try to delete
any files. The responsibility for doing so devolves onto update-fonts-*
(which don't yet, but will). See bug #94752
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postrm-xfonts | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 851b61f5..29cec435 100644 --- a/autoscripts/postrm-xfonts +++ b/autoscripts/postrm-xfonts @@ -10,18 +10,13 @@ makefontdir() { fontdirs="#FONTDIRS#" updatecmds="#UPDATECMDS#" -for currentdir in $fontdirs; do - longdir=/usr/lib/X11/fonts/$currentdir - if [ -d $longdir ]; then - for file in fonts.dir fonts.alias encodings.dir; do - rm -f $longdir/$file - done - if [ $(find $longdir| wc -l) -eq 1 ]; then - rmdir -p $longdir - else +if [ "$1" = "purge" -o "$1" = "remove" -o "$1" = "disappear" ]; then + for currentdir in $fontdirs; do + longdir=/usr/lib/X11/fonts/$currentdir + if [ -d $longdir ]; then for currentcmd in $updatecmds; do $currentcmd $longdir done fi - fi -done + done +fi |