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