Skip to content

Commit

Permalink
[PR] #371 from bertronika/fast-rpm: Speed-up rpm total package count
Browse files Browse the repository at this point in the history
neofetch: Speed-up rpm total package count
  • Loading branch information
hykilpikonna authored Dec 10, 2024
2 parents bb26089 + df71b01 commit 15fabbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -2199,7 +2199,7 @@ get_packages() {
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
pac "$(sqlite3 /var/cache/dnf/packages.db "SELECT count(pkg) FROM installed")"
else
has rpm && tot rpm -qa
has rpm && tot rpm -qa --nodigest --nosignature
fi

# 'mine' conflicts with minesweeper games.
Expand Down Expand Up @@ -2360,7 +2360,7 @@ get_packages() {

AIX|FreeMiNT)
has lslpp && ((packages+=$(lslpp -J -l -q | grep -cv '^#')))
has rpm && tot rpm -qa
has rpm && tot rpm -qa --nodigest --nosignature
;;

Windows)
Expand Down

0 comments on commit 15fabbd

Please sign in to comment.