File: python2.3-exo0.3.prerm

package info (click to toggle)
exo 0.3.1.12rc2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,540 kB
  • ctags: 2,617
  • sloc: ansic: 22,360; sh: 8,676; makefile: 961; python: 403; perl: 235; xml: 128
file content (20 lines) | stat: -rw-r--r-- 540 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash -e
#
# Debian prerm script for Python x.y hierarchical modules
# Written by Gregor Hoffleit <flight@debian.org>
# Extended by Matthias Klose <doko@debian.org>
# Modified by Benedikt Meurer <bm@os-cillation.de>
#

PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'`
PV=`dpkg --listfiles $PACKAGE | sed -n -e '/^\/usr\/lib\/python.*\//{
  s,/usr/lib/python\([0-9][0-9.]*\)/.*,\1,p
  q
}'`

if [ "$1" != "upgrade" ]; then
	update-alternatives --remove py${PV}exo.py \
		/usr/lib/python$PV/site-packages/pyexo.py.$PACKAGE
fi

#DEBHELPER#