#!/bin/sh

set -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
