preinst is in mythbuntu-bare-client 2.7.2.
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 | #!/bin/sh
set -e
case "$1" in
install|upgrade)
# Check mythbuntu-common version, only divert if less than version 0.60
MYTHBUNTU_COMMON_VER=`dpkg-query -W -f='${VERSION}' mythbuntu-common | sed 's,-.*,,'`
if [ "$(echo $MYTHBUNTU_COMMON_VER '<' 0.60 | bc -l)" -eq 1 ];then
dpkg-divert --package mythbuntu-bare-client --add --rename \
--divert /usr/share/mythbuntu/plugins/python/mythbuntu-bare.py.diverted /usr/share/mythbuntu/plugins/python/mythbuntu-bare.py
dpkg-divert --package mythbuntu-bare-client --add --rename \
--divert /usr/share/mythbuntu/plugins/ui/tab_mythbuntu-bare.ui.diverted /usr/share/mythbuntu/plugins/ui/tab_mythbuntu-bare.ui
fi
;;
esac
|