acb3fd1e57
gio-querymodules utility does not delete the file when no modules are left, so we were left with a giomodule.cache file after removing glib2 that was not managed by any package. Also, and as a side effect, ensure that the files are created during install time so that in-place updates work correctly. Bump PKGREVISION to 2.
19 lines
564 B
Bash
19 lines
564 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: DEINSTALL,v 1.1 2011/02/20 17:40:54 jmmv Exp $
|
|
#
|
|
# Forcibly remove any auto-generated caches. The cache-regeneration tools
|
|
# should be doing this automatically when there are no more files in the
|
|
# directories they scan, but they don't. And, anyway, we need to do this
|
|
# if we want in-place updates of glib2 to work correctly.
|
|
#
|
|
|
|
GIO_MODULES_DIR="@GIO_MODULES_DIR@"
|
|
GLIB_SCHEMAS_DIR="@GLIB_SCHEMAS_DIR@"
|
|
|
|
case ${STAGE} in
|
|
DEINSTALL)
|
|
${RM} -f "${GIO_MODULES_DIR}/giomodule.cache"
|
|
${RM} -f "${GLIB_SCHEMAS_DIR}/gschemas.compiled"
|
|
;;
|
|
esac
|