This file is indexed.

preinst is in qgis 2.18.17+dfsg-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
17
#!/bin/sh

set -e

if [ "$1" = "install" -o "$1" = "upgrade" ]; then
	# Remove obsolete diversions
	for i in /usr/bin/qgis /usr/bin/qbrowser; do
		pkg=$(dpkg-divert --listpackage $i)
		if [ -n "$pkg" -a "$pkg" = qgis-plugin-grass -o "$pkg" = qgis-provider-grass ]; then
			dpkg-divert --package $pkg --remove $i
		fi
	done
fi



exit 0