File: mini-dinstall.preinst

package info (click to toggle)
mini-dinstall 0.7.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 2,027; sh: 33; makefile: 8
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#