* debian/screen-profiles.postinst: try to remove the dpkg-divert, but

if it fails, let the installation proceed, since we've copied
    screen.real back into place now, LP: #393204


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-29 15:16:07 -07:00
commit dcd8d5040d
2 changed files with 5 additions and 3 deletions

6
debian/changelog vendored
View file

@ -1,8 +1,10 @@
byobu (2.18) unreleased; urgency=low
* UNRELEASED
* debian/screen-profiles.postinst: try to remove the dpkg-divert, but
if it fails, let the installation proceed, since we've copied
screen.real back into place now, LP: #393204
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Jun 2009 17:35:57 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 29 Jun 2009 15:14:59 -0700
byobu (2.17-0ubuntu1) karmic; urgency=low

View file

@ -9,7 +9,7 @@ if dpkg --compare-versions "$2" lt-nl 2.0; then
cp -a /usr/bin/screen.real /usr/bin/screen
fi
# clean up old screen diversion
dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen
dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen || true
fi
fi