fix
This commit is contained in:
parent
0b80462453
commit
4024e9f592
@ -2,6 +2,7 @@ package providers
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
@ -21,7 +22,7 @@ func getPmPackages(packagerName string, packagerPath string) string {
|
|||||||
return strconv.Itoa(len(pkgs)-1) + " (pacman)"
|
return strconv.Itoa(len(pkgs)-1) + " (pacman)"
|
||||||
}
|
}
|
||||||
if packagerName == "apk" {
|
if packagerName == "apk" {
|
||||||
pkgs, err := os.ReadFile(packagerPath)
|
pkgs, err := exec.Command("apk", "info").Output() // i had to use this sorry
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "error reading apk package list"
|
return "error reading apk package list"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user