2007-10-27 | paulb | raw annotate files changeset graph | [project @ 2007-10-27 21:34:37 by paulb] Changed the multipart field handling to write uploaded files to disk as temporary files for access through FileContent objects, and to avoid reading the entire request into memory. Made the Stream wrapper class more efficient for read operations, adding the possibility of reading a limited number of bytes. |
1 #! /bin/sh 2 # prerm script for WebStack 3 4 set -e 5 6 PACKAGE=python2.4-webstack 7 VERSION=2.4 8 LIB="/usr/lib/python$VERSION" 9 DIRLIST="$LIB/site-packages/WebStack" 10 11 case "$1" in 12 remove|upgrade|failed-upgrade) 13 for i in $DIRLIST ; do 14 find $i -name '*.py[co]' -exec rm \{\} \; 15 done 16 ;; 17 18 *) 19 echo "prerm called with unknown argument \`$1'" >&2 20 exit 1 21 ;; 22 esac 23 24 25 26 exit 0