#! /bin/sh -e if dpkg --compare-versions "$2" le 1.8.10; then DIVERT_LIST="/usr/games/tuxtype /usr/bin/tuxpaint" for f in ${DIVERT_LIST} ; do if [ -f "${f}.real" ] ; then rm -f "$f" 2>&1 >/dev/null || true dpkg-divert --package llxcfg-desktops-keeper --rename --quiet --remove "${f}" || true fi done fi FILES_TO_DIVERT="/usr/share/applications/kde4/ktuberling.desktop /usr/share/applications/kde4/kpackagekit.desktop /usr/share/applications/kde4/kalzium.desktop /usr/share/applications/kde4/marble.desktop /usr/share/applications/kde4/nepomukbackup.desktop /usr/share/applications/kde4/nepomukcleaner.desktop /usr/share/applications/kde4/nepomukcontroller.desktop /usr/share/applications/kde4/k3b.desktop" for f in $FILES_TO_DIVERT ; do dpkg-divert --package llxcfg-desktops-keeper --rename --quiet --add --divert $f.real $f done # SOLVING Scratch2 echo "* [ llxcfg-desktops-keeper ] : Fixing Scratch2 missing desktop" [ ! -f /usr/share/applications/scratch2.desktop ] || rm -f /usr/share/applications/scratch2.desktop # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# update-desktop-database /usr/share/applications/ >/dev/null 2>/dev/null || true update-mime >/dev/null 2>/dev/null || true update-mime-database /usr/share/mime > /dev/null 2>/dev/null || true update-desktop-database -q || true exit 0