Fix packages on Slackware
This commit is contained in:
parent
13dde29326
commit
7dd92aab9d
1 changed files with 3 additions and 3 deletions
6
fetch
6
fetch
|
@ -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)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue