File: python3-docutils.preinst

package info (click to toggle)
python-docutils 0.19%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,668 kB
  • sloc: python: 45,630; lisp: 14,475; xml: 1,789; javascript: 1,032; sh: 130; makefile: 104
file content (13 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (3)
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 0.17
then
	for exe in /usr/share/docutils/scripts/python3/*
	do
		update-alternatives --remove ${exe##*/} $exe
	done
fi

#DEBHELPER#