File: python2.1-unit.prerm

package info (click to toggle)
python-unit 1.4.1-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 324 kB
  • ctags: 232
  • sloc: python: 844; sh: 84; makefile: 67
file content (20 lines) | stat: -rw-r--r-- 403 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh -e
#
# sample prerm script for Debian python packages.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

VERSION=2.1
PACKAGE=python$VERSION-unit

dpkg --listfiles $PACKAGE |
	awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
	xargs rm -f >&2

if [ $1 != "upgrade" ]; then
    # Remove alternatives
	update-alternatives --remove unittestgui /usr/bin/unittestgui.python$VERSION
fi

#DEBHELPER#