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:
Danilo Spinella 2018-04-18 20:33:38 +02:00
parent 9870c90a98
commit 74cec3b30f
1 changed files with 1 additions and 1 deletions

View File

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