File: python-daap.preinst

package info (click to toggle)
python-daap 0.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 156 kB
  • ctags: 122
  • sloc: python: 602; ansic: 377; makefile: 42; sh: 13
file content (21 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# TODO: remove this file after releasing Squeeze
set -e

PYCENTRAL=/usr/bin/pycentral

if [ "$1" = upgrade ]
then
       if dpkg --compare-versions "$2" lt 0.7.1-3 ; then
	   if [ -x $PYCENTRAL ]; then
               # explicitly remove old python-central files
               pycentral pkgremove python-daap
	   fi
	   # be really sure also removing left-over files and dirs
	   for pyversion in 2.4 2.5; do
               rm -f /usr/lib/python$pyversion/site-packages/daap.py*
           done
       fi
fi

#DEBHELPER#