tasksel-data.postinst 325 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh
set -e
#DEBHELPER#

# directory turned into symlink; give dpkg a hand.
if dpkg --compare-versions "$2" lt 3.14; then
	if [ ! -L /usr/share/doc/tasksel-data ] && \
	   [ -d /usr/share/doc/tasksel-data ] && \
	   rmdir /usr/share/doc/tasksel-data 2>/dev/null; then
		ln -sf tasksel /usr/share/doc/tasksel-data
	fi
fi