]> git.llucax.com Git - software/mutt-debian.git/blob - debian/mutt-patched.postinst
Merge commit 'upstream/1.5.21'
[software/mutt-debian.git] / debian / mutt-patched.postinst
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" = "configure" ] ; then
6         # versions prior to 1.5.20-9 used dpkg-divert instead of update-alternatives
7         if [ "$2" ] && dpkg --compare-versions "$2" lt "1.5.20-9" ; then
8                 dpkg-divert --remove --package mutt-patched --rename \
9                         --divert /usr/bin/mutt.org /usr/bin/mutt
10         fi
11
12         update-alternatives --install /usr/bin/mutt mutt /usr/bin/mutt-patched 60
13 fi
14
15 #DEBHELPER#
16
17 exit 0