#!/bin/sh

if [ "$1" = "configure" ]
then
	# We need a bit of manual cleanup due to toolchain problems around
    # the time when python2.7 was # made the default
	if dpkg --compare-versions "$2" le 0.9.14-0ubuntu2~~ && \
	   dpkg --compare-versions "$2" gt 0.9.13-0ubuntu1~
	then
		find /usr/lib/python2.7/dist-packages/eventlet -name '*.pyc' -delete || true
		find /usr/lib/python2.7/dist-packages/eventlet -type d | sort -r | while read d; do rmdir "$d" || true; done
	fi
fi

#DEBHELPER#
