postinst is in mutt-patched 1.5.24-1build1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
# versions prior to 1.5.20-9 used dpkg-divert instead of update-alternatives
if [ "$2" ] && dpkg --compare-versions "$2" lt "1.5.20-9" ; then
dpkg-divert --remove --package mutt-patched --rename \
--divert /usr/bin/mutt.org /usr/bin/mutt
fi
update-alternatives --install /usr/bin/mutt mutt /usr/bin/mutt-patched 60 \
--slave /usr/share/man/man1/mutt.1.gz mutt.1.gz /usr/share/man/man1/mutt-patched.1.gz \
--slave /usr/share/man/man5/muttrc.5.gz muttrc.5.gz /usr/share/man/man5/muttrc-patched.5.gz \
--slave /usr/share/doc/mutt/html mutt-doc-html /usr/share/doc/mutt/html-patched \
--slave /usr/share/doc/mutt/manual.txt.gz mutt-doc-manual /usr/share/doc/mutt/manual-patched.txt.gz
fi
exit 0
|