From cfb3b391bd5d3a15a354d06b94443a0493c758ba Mon Sep 17 00:00:00 2001 From: FUJISHIMA Satsuki Date: Wed, 14 Mar 2001 20:15:22 +0000 Subject: [PATCH] fix pkg_delete if lib/X11/fonts/local/fonts.dir is not empty. ===> Deinstalling for bitmap-fonts-1.0.p4 pkg_delete: post-deinstall script returned error status --- x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl b/x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl index 5acdd065022e..f4f700fcd2a9 100644 --- a/x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl +++ b/x11-fonts/bitmap-fonts/files/DEINSTALL.tmpl @@ -9,5 +9,5 @@ if [ "x$2" = "xPOST-DEINSTALL" ]; then echo "to enable this update." echo "**********************************************************" ) - [ `wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir + [ `wc -c ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir | awk '{print $1}'` = 2 ] && rm -f ${PKG_PREFIX}/%%FONTSDIR%%/fonts.dir || true fi