gtk3/debian/libgtk-3-bin.preinst
Josselin Mouette 037cd2a225 * 043_notebook_scroll.patch: new patch. Reintroduce tab scrolling in
GtkNotebook, but this time only when Alt is pressed, as recommended 
  by upstream.
* Drop debhelper 8 requirement so that it can build.
* libgtk-3-bin.preinst: only remove libgtk3.0-bin diversions if they 
  already exist.
2011-06-04 20:51:17 +00:00

25 lines
860 B
Bash

#!/bin/sh -e
set -e
if [ "$1" = install ] || [ "$1" = upgrade ] ; then
if dpkg-divert --listpackage /usr/sbin/update-icon-caches | grep -q libgtk3.0-bin; then
dpkg-divert --remove --package libgtk3.0-bin --rename \
--divert /usr/sbin/update-icon-caches.gtk2 \
/usr/sbin/update-icon-caches
dpkg-divert --remove --package libgtk3.0-bin --rename \
--divert /usr/share/man/man8/update-icon-caches.gtk2.8.gz \
/usr/share/man/man8/update-icon-caches.8.gz
fi
dpkg-divert --add --package libgtk-3-bin --rename \
--divert /usr/sbin/update-icon-caches.gtk2 \
/usr/sbin/update-icon-caches
dpkg-divert --add --package libgtk-3-bin --rename \
--divert /usr/share/man/man8/update-icon-caches.gtk2.8.gz \
/usr/share/man/man8/update-icon-caches.8.gz
fi
#DEBHELPER#
exit 0