Skip to content

Commit

Permalink
added support for dnf package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinkirkland committed Feb 10, 2024
1 parent 63df0a8 commit fc1b458
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ byobu (6.11) unreleased; urgency=medium
* usr/bin/byobu-launcher-install.in:
- Fix for VSCode, fish and byobu installations
- https://github.com/dustinkirkland/byobu/commit/f917d2169afdec623f5b32723d93bfd91d34b92f#commitcomment-137955113
* usr/lib/byobu/updates_available:
- added support for dnf package manager
- https://code.launchpad.net/~sanjay-ankur/byobu/byobu/+merge/415959

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

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

Expand Down
6 changes: 6 additions & 0 deletions usr/lib/byobu/updates_available
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ ___update_cache() {
# Wolfi updates are cheap (~1s); so update cache every time
apk update 2>&1 >/dev/null
apk upgrade --simulate | grep -c " Upgrading " >$mycache 2>/dev/null &
elif eval $BYOBU_TEST dnf >/dev/null; then
# If dnf exists, use it
flock -xn "$flock" dnf list --upgrades -q -y | grep -vc "Available Upgrades" >$mycache 2>/dev/null &
fi
}

Expand Down Expand Up @@ -141,6 +144,9 @@ ___update_needed() {
# formulae database was updated
[ "$(brew --prefix)/Library/Formula" -nt "$mycache" ]
return $?
elif [ -e "/var/cache/dnf/packages.db" ]; then
[ "/var/cache/dnf/packages.db" -nt "$mycache" ]
return $?
fi
return 1
}
Expand Down

0 comments on commit fc1b458

Please sign in to comment.