summaryrefslogtreecommitdiffstats
path: root/debian/python3-sphinx.preinst
blob: b4b7bd641844560f6972df62fd6c2c2b15dcde46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

if [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 2.4.3-3~
then
	for exe in /usr/share/sphinx/scripts/python3/*
	do
		update-alternatives --remove ${exe##*/} $exe
	done
fi

#DEBHELPER#