This file is indexed.

postinst is in openstreetmap-carto-common 2.37.1-1.

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

# Source debconf library.
. /usr/share/debconf/confmodule

db_get openstreetmap-carto/fetch-data
if [ "$RET" = "true" ]; then
    cd /usr/share/openstreetmap-carto-common/ && ./get-shapefiles.sh
    db_set openstreetmap-carto/fetch-data false
elif [ -d /usr/share/openstreetmap-carto/data.old ] &&
     [ ! -L /usr/share/openstreetmap-carto/data.old ] &&
     [ ! -e /usr/share/openstreetmap-carto-common/data ] ; then
    mv /usr/share/openstreetmap-carto/data.old /usr/share/openstreetmap-carto-common/data
fi