This file is indexed.

preinst is in testdrive-common 3.26-0ubuntu1.

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
18
19
20
21
#!/bin/sh

set -e

# Backup old confile
if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.0; then
	if [ -f /etc/testdriverc ]; then
		if md5sum /etc/testdriverc | grep -qs e76ef0100e1314c1094e8677755c63df; then
			true
		else
			mv -f /etc/testdriverc /etc/testdriverc.old
			echo "TestDrive: The configuration format has changed"
			echo "TestDrive: Moved /etc/testdriverc to /etc/testdriverc.old"
			echo "TestDrive: You may need to merge your customizations into /etc/testdriverc"
		fi
	fi
fi



exit 0