File: mini-dinstall.preinst

package info (click to toggle)
mini-dinstall 0.6.28.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 288 kB
  • ctags: 325
  • sloc: python: 2,061; sh: 26; makefile: 7
file content (16 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (10)
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#