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