This file is indexed.

postinst is in crawl-common 2:0.17.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

# Everything here is clean-up from old versions that used to be setgid.

OLDDIR=/var/games/crawl/saves
DIR=/var/games/crawl

# Drop the old db cache; the new one is in ~/.crawl/ for security reasons.
rm -rf $OLDDIR/db
rm -rf $OLDDIR/des
rm -f $OLDDIR/*.prf

# We keep old saves and bones for now, they're incompatible but the user may
# decide to downgrade to complete a game in progress.
rmdir $OLDDIR $DIR/morgue $DIR >/dev/null 2>/dev/null || true