This file is indexed.

preinst is in puppet-common 5.4.0-2ubuntu3.

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
#!/bin/sh

set -e

# Stop puppet agent before removing /usr/bin/puppet on upgrade; otherwise the
# initscript will fail to stop the service, see #859454.
if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "4.4.2-1~"; then
	if [ -x "/etc/init.d/puppet" ]; then
		invoke-rc.d puppet stop || true
	fi
fi