summaryrefslogtreecommitdiffstats
path: root/debian/python3-sphinx.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/python3-sphinx.preinst')
-rw-r--r--debian/python3-sphinx.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/python3-sphinx.preinst b/debian/python3-sphinx.preinst
new file mode 100644
index 0000000..b4b7bd6
--- /dev/null
+++ b/debian/python3-sphinx.preinst
@@ -0,0 +1,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#