* usr/lib/byobu/reboot_required, usr/lib/byobu/updates_available:

- powersave flag and reload flag suffered from the same problem
    as LP: #942469
This commit is contained in:
Dustin Kirkland 2012-02-28 15:00:56 -06:00
commit 111a2d8f43
3 changed files with 9 additions and 1 deletions

3
debian/changelog vendored
View file

@ -3,6 +3,9 @@ byobu (5.16) unreleased; urgency=low
* usr/lib/byobu/updates_available: LP: #942469
- fix regression clearing updates_available status
- and fix a typo in that commit
* usr/lib/byobu/reboot_required, usr/lib/byobu/updates_available:
- powersave flag and reload flag suffered from the same problem
as LP: #942469
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 23 Feb 2012 15:01:55 -0600

View file

@ -31,14 +31,19 @@ __reboot_required_detail() {
}
__reboot_required() {
local status="$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/reboot_required"
if [ -e "$REBOOT_FLAG" ]; then
color b W; printf "$ICON_REBOOT"; color --;
fi
if [ -e "$RELOAD_FLAG" ]; then
color b W; printf "<"; color -; color b b W; printf "F5"; color -; color b W; printf ">"; color -; printf " "
elif [ -s "$status" ]; then
rm -f "$status"
fi
if [ -e "$POWERNAP_FLAG" ]; then
color b W; printf ".zZ"; color --
elif [ -s "$status" ]; then
rm -f "$status"
fi
}

View file

@ -31,7 +31,7 @@ ___print_updates() {
printf "$ICON_UPDATES"
fi
color --
elif [ "$u" = "0" ]; then
elif [ "$u" = "0" ] && [ -e "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/updates_available" ]; then
# Clear out byobu's status cache
rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/updates_available"*
fi