Fix packages on Slackware

This commit is contained in:
Dylan 2016-02-16 15:21:45 +11:00
parent 13dde29326
commit 7dd92aab9d

6
fetch
View file

@ -616,6 +616,9 @@ getpackages () {
elif type -p pacman >/dev/null 2>&1; then elif type -p pacman >/dev/null 2>&1; then
packages="$(pacman -Qq --color never | wc -l)" packages="$(pacman -Qq --color never | wc -l)"
elif type -p pkgtool >/dev/null 2>&1; then
packages="$(ls -1 /var/log/packages | wc -l)"
elif type -p rpm >/dev/null 2>&1; then elif type -p rpm >/dev/null 2>&1; then
packages="$(rpm -qa | wc -l)" packages="$(rpm -qa | wc -l)"
@ -631,9 +634,6 @@ getpackages () {
elif type -p pkg >/dev/null 2>&1; then elif type -p pkg >/dev/null 2>&1; then
packages="$(ls -1 /var/db/pkg | wc -l)" packages="$(ls -1 /var/db/pkg | wc -l)"
elif type -p pkgtool >/dev/null 2>&1; then
packages="$(ls -1 /var/log/packages | wc -l)"
elif type -p emerge >/dev/null 2>&1; then elif type -p emerge >/dev/null 2>&1; then
packages="$(ls -d /var/db/pkg/*/* | wc -l)" packages="$(ls -d /var/db/pkg/*/* | wc -l)"