1 2 3 4 5 6 7
pkgname=gnome-screensaver pre_upgrade() { if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then usr/sbin/gconfpkg --uninstall ${pkgname} fi }