mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* 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:
parent
92b7ae0e94
commit
111a2d8f43
3 changed files with 9 additions and 1 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue