Skip to content

Commit fc1b458

Browse files
1 parent 63df0a8 commit fc1b458

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

debian/changelog

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ byobu (6.11) unreleased; urgency=medium
77
* usr/bin/byobu-launcher-install.in:
88
- Fix for VSCode, fish and byobu installations
99
- https://github.com/dustinkirkland/byobu/commit/f917d2169afdec623f5b32723d93bfd91d34b92f#commitcomment-137955113
10+
* usr/lib/byobu/updates_available:
11+
- added support for dnf package manager
12+
- https://code.launchpad.net/~sanjay-ankur/byobu/byobu/+merge/415959
1013

11-
-- Dustin Kirkland <[email protected]> Sat, 10 Feb 2024 10:56:13 -0600
14+
-- Dustin Kirkland <[email protected]> Sat, 10 Feb 2024 11:03:36 -0600
1215

1316
byobu (6.10-0ubuntu1) noble; urgency=medium
1417

usr/lib/byobu/updates_available

+6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ ___update_cache() {
8585
# Wolfi updates are cheap (~1s); so update cache every time
8686
apk update 2>&1 >/dev/null
8787
apk upgrade --simulate | grep -c " Upgrading " >$mycache 2>/dev/null &
88+
elif eval $BYOBU_TEST dnf >/dev/null; then
89+
# If dnf exists, use it
90+
flock -xn "$flock" dnf list --upgrades -q -y | grep -vc "Available Upgrades" >$mycache 2>/dev/null &
8891
fi
8992
}
9093

@@ -141,6 +144,9 @@ ___update_needed() {
141144
# formulae database was updated
142145
[ "$(brew --prefix)/Library/Formula" -nt "$mycache" ]
143146
return $?
147+
elif [ -e "/var/cache/dnf/packages.db" ]; then
148+
[ "/var/cache/dnf/packages.db" -nt "$mycache" ]
149+
return $?
144150
fi
145151
return 1
146152
}

0 commit comments

Comments
 (0)