This file is indexed.

preinst is in time 1.7-23.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
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# This is the preinst script for the Debian GNU/Linux time package
#
# Written by Dirk Eddelbuettel <edd@debian.org>   

set -e



case "$1" in
    upgrade)
	# This is needed for time_1.7-4 as it calls update-menus only on
	# remove or purge. As dhelp drops this file here which is outside the 
	# package manager's scope, and hence not removed unless update-menus is 
	# called, but this happens too late 
	if [ -f /usr/doc/time/.dhelp ]
	then
	    rm /usr/doc/time/.dhelp
	fi
	#
	# There could also be an empty dir left, let's remove it 
	#if [ -d /usr/doc/time ]
	#then
	#    rmdir /usr/doc/time 
	#fi
	;;
    remove|purge)
	;;
    install|failed-upgrade|abort-install|abort-upgrade|disappear)
	;;
    *)
	echo "preinst called with unknown argument \`$1'" >&2
	;;
esac

exit 0