[PR] #371 from bertronika/fast-rpm: Speed-up rpm total package count

neofetch: Speed-up rpm total package count
This commit is contained in:
Azalea 2024-12-10 04:04:16 -05:00 committed by GitHub
commit 15fabbdb1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.
@ -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)