Merge pull request #864 from MitchWeaver/master

add Sabotage linux package support
This commit is contained in:
Herdiansyah 2017-11-26 18:58:42 +07:00 committed by GitHub
commit 23340e29c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -552,6 +552,9 @@ get_packages() {
packages="$((packages+=$(ls -d -1 "${package_dir[@]}" | wc -l)))"
fi
type -p butch >/dev/null && \
packages="$((packages+=$(butch list | wc -l)))"
if type -p pkg >/dev/null; then
case "$kernel_name" in
"FreeBSD") packages="$((packages+=$(pkg info | wc -l)))" ;;