diff options
author | Guido Guenther <agx@sigxcpu.org> | 2007-08-23 15:47:20 +0200 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-08-23 15:47:20 +0200 |
commit | e5f5a2ab23ace19c6de39512f76f8fed5f5ad912 (patch) | |
tree | a3a2a1ba762515d37acaf85d9e5c27f81a3ab6c1 /debian/mini-dinstall.preinst |
Imported upstream version 0.6.21upstream/0.6.21debian/0.6.21-0.1upstream
Diffstat (limited to 'debian/mini-dinstall.preinst')
-rw-r--r-- | debian/mini-dinstall.preinst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/mini-dinstall.preinst b/debian/mini-dinstall.preinst new file mode 100644 index 0000000..f45a4e7 --- /dev/null +++ b/debian/mini-dinstall.preinst @@ -0,0 +1,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# |