Merge pull request #951 from DanySpin97/master

Fix packages count for exherbo
This commit is contained in:
Dylan Araps 2018-04-19 10:18:55 +10:00 committed by GitHub
commit 4528ecd47c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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$)))" packages="$((packages+=$(kpm --get-selections | grep -cv deinstall$)))"
if type -p cave >/dev/null; then 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)))" packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
fi fi