summaryrefslogtreecommitdiffstats
path: root/debian/tasksel-data.postinst
blob: b7b438cf52c7fbbd7657401e544b9f27a6283435 (plain)
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