preinst is in vdr-plugin-streamdev-client 0.6.0+git20130305-5.
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 | #! /bin/sh
set -e
#
# Drop diversions of locale files when upgrading from versions prior to 0.5.0-1
#
if [ "$1" = "install" -o "$1" = "upgrade" ]; then
if dpkg --compare-versions "$2" lt "0.5.0-1"; then
for lang in de_DE fi_FI fr_FR it_IT ru_RU sk_SK; do
dpkg-divert --package vdr-plugin-streamdev-client --rename --remove /usr/share/locale/$lang/LC_MESSAGES/vdr-streamdev.mo
done
fi
fi
|