File: prerm

package info (click to toggle)
python 1.5.2-10potato11
  • links: PTS
  • area: main
  • in suites: potato
  • size: 13,340 kB
  • ctags: 36,680
  • sloc: ansic: 97,117; python: 88,266; makefile: 2,518; lisp: 2,363; sh: 882
file content (20 lines) | stat: -rw-r--r-- 456 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
#
# prerm script for the Debian python-base package.
# Written 1998 by Gregor Hoffleit <flight@debian.org>.
#

PACKAGE=python-base

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

rmdir /usr/local/lib/python1.5/site-packages 2>/dev/null && \
        rmdir /usr/local/lib/python1.5 2>/dev/null || \
        true
rmdir /usr/local/lib/site-python 2>/dev/null || \
        true


#DEBHELPER#