mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* 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:
parent
e64902b308
commit
3e7b0a5239
2 changed files with 6 additions and 6 deletions
5
debian/changelog
vendored
5
debian/changelog
vendored
|
@ -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
7
debian/postinst
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue