This commit is contained in:
nekohepott 2026-06-17 04:16:27 +03:00
parent 0b80462453
commit 4024e9f592
No known key found for this signature in database

View File

@ -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"
}