aboutsummaryrefslogtreecommitdiff
path: root/debian/mini-dinstall.preinst
blob: f45a4e7deedadc89bd11b36858d531a9293e2760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

OLDDIR='/usr/lib/site-python/minidinstall'

if [ "$1" = upgrade ]; then
    if [ -d "$OLDDIR" ]; then
	printf "Removing old optimized Python files in %s\n" "$OLDDIR"
	for i in pyc pyo; do
		rm -f "$OLDDIR"/*.$i
	done
    fi
fi

#DEBHELPER#