File: python3-sphinx.preinst

package info (click to toggle)
sphinx 4.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,656 kB
  • sloc: python: 74,641; javascript: 14,242; perl: 420; makefile: 247; sh: 57; xml: 19; ansic: 1
file content (13 lines) | stat: -rw-r--r-- 211 bytes parent folder | download | duplicates (22)
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#