Fix packages count for exherbo
Installed packages data is stored in /var/db/paludis/installed/data/* and the cross-installed packages data is stored in /var/db/paludis/cross-installed/arch/data/* where arch could be every cpu arch supported by exherbo.
This commit is contained in:
parent
9870c90a98
commit
74cec3b30f
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -564,7 +564,7 @@ get_packages() {
|
|||
packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
|
||||
|
||||
if type -p cave >/dev/null; then
|
||||
package_dir=(/var/db/paludis/repositories/{cross-installed,installed}/*/data/*)
|
||||
package_dir=(/var/db/paludis/repositories/{cross-installed/*,installed}/data/*)
|
||||
packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue