* debian/postinst: clean up old screen -> byobu symlink before undoing

the dpkg-divert, LP: #382462


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-01 13:53:13 -05:00
commit 3e7b0a5239
2 changed files with 6 additions and 6 deletions

5
debian/changelog vendored
View file

@ -1,8 +1,9 @@
byobu (2.7) unreleased; urgency=low
* UNRELEASED
* debian/postinst: clean up old screen -> byobu symlink before undoing
the dpkg-divert, LP: #382462
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Jun 2009 09:17:28 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Jun 2009 13:46:40 -0500
byobu (2.6-0ubuntu1) karmic; urgency=low

7
debian/postinst vendored
View file

@ -5,10 +5,9 @@ PKG="byobu"
if [ -x "/usr/bin/screen.real" ]; then
# Byobu used to divert the real /usr/bin/screen, but we don't
# 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
# mv /usr/bin/screen.real /usr/bin/screen
#fi
if ls -alF /usr/bin/screen 2>/dev/null | grep -qs "^l.*/usr/bin/screen -> byobu"; then
rm -f /usr/bin/screen
fi
dpkg-divert --package "$PKG" --rename --remove /usr/bin/screen
fi