File: python3-docutils.preinst

package info (click to toggle)
python-docutils 0.21.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,900 kB
  • sloc: python: 50,310; lisp: 14,475; xml: 1,810; javascript: 1,032; makefile: 107; sh: 78
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#