no need for postrm any more

rm /usr/bin/screen if it's a link to byobu

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-26 16:53:54 +02:00
commit fd210ffd2f
2 changed files with 3 additions and 9 deletions

9
debian/postrm vendored
View file

@ -1,9 +0,0 @@
#!/bin/sh -e
PKG="byobu"
if [ -x "/usr/bin/screen.real" ]; then
dpkg-divert --package "$PKG" --rename --remove /usr/bin/screen
fi
#DEBHELPER#

3
debian/preinst vendored
View file

@ -5,6 +5,9 @@ PKG="byobu"
if [ -x "/usr/bin/screen.real" ]; then if [ -x "/usr/bin/screen.real" ]; then
# Byobu used to divert the real /usr/bin/screen, but we don't # Byobu used to divert the real /usr/bin/screen, but we don't
# do this anymore; clean up old diversion if upgrading # do this anymore; clean up old diversion if upgrading
if ls -alF /usr/bin/screen | grep -qs "/usr/bin/screen -> byobu"; then
rm -f /usr/bin/screen
fi
dpkg-divert --package "$PKG" --rename --remove /usr/bin/screen dpkg-divert --package "$PKG" --rename --remove /usr/bin/screen
fi fi