This file is indexed.

postinst is in vlc-data 2.1.2-2build2.

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

# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/vlc/lua/http/dialogs/.hosts 2.1.1 -- "$@"
# End automatically added section
# Automatically added by dh_installdeb
dpkg-maintscript-helper rm_conffile /etc/vlc/lua/http/.hosts 2.1.1 -- "$@"
# End automatically added section


check_and_remove() {
	if test -d "$1"; then
		rmdir --ignore-fail-on-non-empty "$1"
	fi
}

case "$1" in
	configure)
		# Remove empty /etc/vlc directory (to work around bug #584185).
		if dpkg --compare-versions "$2" le "2.1.1"; then
			check_and_remove /etc/vlc/lua/http/dialogs
			check_and_remove /etc/vlc/lua/http
			check_and_remove /etc/vlc/lua
			check_and_remove /etc/vlc
		fi
		;;
esac