From d7144bc0ab97977739fcdeb1896f78969821b3ae Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 17 Sep 2009 09:02:51 -0500 Subject: [PATCH] added bug number, fix upgrades with better preinst script to create links Signed-off-by: Dustin Kirkland --- debian/changelog | 6 ++++-- debian/postinst | 5 ----- debian/preinst | 8 ++++++++ 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 debian/preinst diff --git a/debian/changelog b/debian/changelog index a5ccf8c1..75aebb38 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,9 +7,11 @@ byobu (2.33) unreleased; urgency=low updating the cache, handle it more efficiently * po/byoub-*.po: rename to just *.po, fix translations location, LP: #430095 * debian/control: drop update-notifier-common and lsb-release to suggests, - as we can live without these now + as we can live without these now, LP: #431875 + * debian/postinst, debian/preinst: move symlink of screen-profiles-status -> + byobu-status from the postinst to the preinst - -- Dustin Kirkland Wed, 16 Sep 2009 23:28:02 -0500 + -- Dustin Kirkland Thu, 17 Sep 2009 01:09:50 -0500 byobu (2.32-0ubuntu1) karmic; urgency=low diff --git a/debian/postinst b/debian/postinst index e6626bfc..3b580776 100644 --- a/debian/postinst +++ b/debian/postinst @@ -6,11 +6,6 @@ PKG="byobu" # the divert removal to fail; we don't want that to happen [ -e "/usr/bin/screen.real" ] && [ ! -e "/usr/bin/screen" ] && cp -a /usr/bin/screen.real /usr/bin/screen -# The following two links significantly improve the upgrade -# experience from screen-profiles to byobu. -ln -sf /usr/bin/byobu-status /usr/bin/screen-profiles-status -ln -sf /usr/bin/byobu-launcher /usr/bin/screen-launcher - # Notify users that they should reload their profile DIR="/var/run/screen" for d in $(ls "$DIR"); do diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 00000000..ff3995ff --- /dev/null +++ b/debian/preinst @@ -0,0 +1,8 @@ +#!/bin/sh -e + +# The following two links significantly improve the upgrade +# experience from screen-profiles to byobu. +ln -sf /usr/bin/byobu-status /usr/bin/screen-profiles-status +ln -sf /usr/bin/byobu-launcher /usr/bin/screen-launcher + +#DEBHELPER#