pre_remove() {
    rm -f usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
}

_update_cache() {
    printf '%s\n' ':: Updating gdk-pixbuf2 cache...'
    gdk-pixbuf-query-loaders --update-cache
}

post_install() {
    _update_cache
}

post_upgrade() {
    _update_cache
}
