preinst is in python3-babel 1.3+dfsg.1-2ubuntu1.
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 | #!/bin/sh
set -e
if [ "${1}" = "upgrade" ] ; then
# What's below is needed for upgrading from packages before localedata was in an independent python-babel-localedata package.
if [ ! -h /usr/lib/python3/dist-packages/babel/localedata ] && [ -d /usr/lib/python3/dist-packages/babel/localedata ]; then
find /usr/lib/python3/dist-packages/babel/localedata -maxdepth 1 -type f -name '*.dat' -delete
find /usr/lib/python3/dist-packages/babel/localedata -maxdepth 1 -type l -name '*.dat' -delete
rmdir /usr/lib/python3/dist-packages/babel/localedata
fi
fi
exit 0
|