This file is indexed.

postrm is in printer-driver-pnm2ppa 1.13+nondbs-0ubuntu5.

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

set -e

# Purge actions
if [ "$1" = purge ] ; then
	# Get rid of configuration file
	if [ -f /etc/pnm2ppa.conf ]; then
		rm -f /etc/pnm2ppa.conf
	fi
	# We're pretty sure that the pnm2ppa magicfilter files were generated
	# or installed by pnm2ppa packages.
	if [ -d /etc/magicfilter ] ; then
		for i in /etc/magicfilter/p?m2ppa*-filter ; do
			rm -f $i || true
		done

		# If there are no files in the magicfilter directory, remove.
		# rmdir will fail if there are files...  Not an error.
		rmdir /etc/magicfilter 2> /dev/null || true
	fi
fi

# Automatically added by dh_installdebconf
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
	db_purge
fi
# End automatically added section