diff options
author | drochner <drochner> | 2008-06-23 12:55:01 +0000 |
---|---|---|
committer | drochner <drochner> | 2008-06-23 12:55:01 +0000 |
commit | 55ccca612b2bd92ff51508d028a6df83e0ccef23 (patch) | |
tree | 9bf46e55382e2b0202b2efcac344c847b744db32 /databases | |
parent | 07091a49a81bcea595a810af96342a11149c362d (diff) | |
download | pkgsrc-55ccca612b2bd92ff51508d028a6df83e0ccef23.tar.gz |
try to be friendly to people doing "make update": don't blow away
share/mime/packages
Diffstat (limited to 'databases')
-rw-r--r-- | databases/shared-mime-info/DEINSTALL | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/databases/shared-mime-info/DEINSTALL b/databases/shared-mime-info/DEINSTALL index 02f5e54120d..401821412a2 100644 --- a/databases/shared-mime-info/DEINSTALL +++ b/databases/shared-mime-info/DEINSTALL @@ -1,9 +1,11 @@ -# $NetBSD: DEINSTALL,v 1.1 2006/06/15 20:40:15 jlam Exp $ +# $NetBSD: DEINSTALL,v 1.2 2008/06/23 12:55:01 drochner Exp $ MIMEDB_PATH="@MIMEDB_PATH@" case ${STAGE} in POST-DEINSTALL) - ${RM} -rf ${MIMEDB_PATH} + (cd ${MIMEDB_PATH} && \ + ${LS} . | ${GREP} -v '^packages$' | ${XARGS} ${RM} -rf) + ${RMDIR} ${MIMEDB_PATH}/packages || ${TRUE} ;; esac |