summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2002-06-27 20:43:44 +0000
committerjlam <jlam>2002-06-27 20:43:44 +0000
commit7f879a2c5a2cf4b76a7c356ed0defb53a876d81a (patch)
treee167b0fda45c0204df1ad73930d20b4ce833a420 /mk
parentb447447604d2c529e8a876f307974b1c61e2dc0e (diff)
downloadpkgsrc-7f879a2c5a2cf4b76a7c356ed0defb53a876d81a.tar.gz
Don't bother the admin about the ${PKG_SYSCONFBASE} and ${RCD_SCRIPTS_DIR}
directories if they still exist after we try to remove them.
Diffstat (limited to 'mk')
-rw-r--r--mk/install/deinstall18
1 files changed, 14 insertions, 4 deletions
diff --git a/mk/install/deinstall b/mk/install/deinstall
index acf2510a70c..ffd4e1b82a1 100644
--- a/mk/install/deinstall
+++ b/mk/install/deinstall
@@ -1,6 +1,6 @@
# start of deinstall
#
-# $NetBSD: deinstall,v 1.9 2002/06/20 20:15:50 jlam Exp $
+# $NetBSD: deinstall,v 1.10 2002/06/27 20:43:44 jlam Exp $
eval set -- ${PKG_USERS}
for userset; do
@@ -124,9 +124,19 @@ POST-DEINSTALL)
${RMDIR} -p "${dir}" 2>/dev/null || ${TRUE}
;;
esac
- if [ -d "${dir}" ]; then
- existing_dirs="${existing_dirs} \"${dir}\""
- fi
+ case "${dir}" in
+ #
+ # Don't bother the admin about the following dirs
+ # if they still exist.
+ #
+ ${PKG_SYSCONFBASE}|${RCD_SCRIPTS_DIR})
+ ;;
+ *)
+ if [ -d "${dir}" ]; then
+ existing_dirs="${existing_dirs} \"${dir}\""
+ fi
+ ;;
+ esac
fi
done