Add mp to packages output
This commit is contained in:
parent
409312b41b
commit
9bcceaf779
8
neofetch
8
neofetch
@ -1565,6 +1565,14 @@ get_packages() {
|
|||||||
has swupd && tot swupd bundle-list --quiet
|
has swupd && tot swupd bundle-list --quiet
|
||||||
has pisi && tot pisi li
|
has pisi && tot pisi li
|
||||||
has pacstall && tot pacstall -L
|
has pacstall && tot pacstall -L
|
||||||
|
|
||||||
|
if has mp; then
|
||||||
|
mppkgs=$(MP_GREP=1 mp-list | grep -v ">>>")
|
||||||
|
while IFS= read -r line; do
|
||||||
|
packages+=( $line )
|
||||||
|
done <<< "$mppkgs"
|
||||||
|
pac $((${#packages[@]}-pkgs_h))
|
||||||
|
fi
|
||||||
|
|
||||||
# Using the dnf package cache is much faster than rpm.
|
# Using the dnf package cache is much faster than rpm.
|
||||||
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
|
if has dnf && type -p sqlite3 >/dev/null && [[ -f /var/cache/dnf/packages.db ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user