File: preinst

package info (click to toggle)
bzrtools 0.11.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 508 kB
  • ctags: 560
  • sloc: python: 4,863; sh: 11; makefile: 8
file content (17 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh -e

#DEBHELPER#

# handle problem caused by the new Python policy. The directory being removed needs to 
# be a symlink now
case $1 in
    install|upgrade)
	for pyversion in 2.3 2.4 2.5; do
	    test -d /usr/lib/python${pyversion}/site-packages/bzrlib/plugins/bzrtools && \
	    	rm -rf /usr/lib/python${pyversion}/site-packages/bzrlib/plugins/bzrtools || \
		true
	done
	;;
    *)
	;;
esac