preinst is in espeak-data 1.47.11-1ubuntu1.
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 | #!/bin/sh
set -e
# workaround for quantal → trusty upgrades where
# /usr/lib/*/espeak-data/voices/en changed from a directory to a file; this
# fails in containers sometimes (LP: #1220681): this can be dropped in
# trusty+1.
if [ "$1" = "upgrade" ]; then
d=/usr/lib/x86_64-linux-gnu/espeak-data/voices/en
if [ -d $d ]; then
rm -r $d || true
fi
fi
|