summaryrefslogtreecommitdiffstats
path: root/gnome2-libs/FUNCTIONS
blob: deb98f76bdc06172475e25ee33ed9ebccfdfb7ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#---------------------------------------------------------------------
## Replaces sorcerys default_pre-remove with a custom version
#---------------------------------------------------------------------
function default_pre_remove() {
    debug "libapi" "$FUNCNAME - $*"
    real_default_pre_remove "$@"
    if [[ -f "${SCRIPT_DIRECTORY}/G_SCHEMAS" && -e "/usr/bin/gconftool-2" ]]; then
       local G_FILE
       export GCONF_CONFIG_SOURCE="xml:readwrite:${INSTALL_ROOT}/etc/gconf/gconf.xml.defaults"
       for G_FILE in `cat ${SCRIPT_DIRECTORY}/G_SCHEMAS`
       do
          gconftool-2 --makefile-uninstall-rule "${INSTALL_ROOT}/etc/gconf/schemas/${G_FILE}" > /dev/null || true
       done
    fi
}