#!/bin/sh
#
# postrm script for upgrade-system
#
## COPYRIGHT
#  (C) 2004-2011, Martin-Éric Racine <martin-eric.racine@iki.fi>
#
## LICENSE
#  This package is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation, either version 2 of the License, or
#  (at your option) any later version.
#
# see: dh_installdeb(1)

set -e

case "$1" in
	remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
	;;
	purge)
		if [ -f /etc/apt/preferences.old ]
		then
			mv /etc/apt/preferences.old /etc/apt/preferences
		fi
	;;
	*)
		echo "postrm called with unknown argument \`$1'" >&2
		exit 1
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
