From 7b068400acb737a64e1f8e5c6b23d72b8dd5c1eb Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 11 May 2001 17:44:02 +0000 Subject: [PATCH] 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 --- autoscripts/postrm-xfonts | 17 ++++++----------- debian/changelog | 8 ++++++++ 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/autoscripts/postrm-xfonts b/autoscripts/postrm-xfonts index 851b61f..29cec43 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 diff --git a/debian/changelog b/debian/changelog index 93b1999..027f3fa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +debhelper (3.0.20) unstable; urgency=low + + * 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 + + -- Joey Hess Fri, 11 May 2001 13:30:43 -0400 + debhelper (3.0.19) unstable; urgency=low * Now uses html2text rather than lynx for converting html changelogs. -- 2.39.2