Improve AUR with AUR dependency installations

This commit is contained in:
AI Bot
2026-05-03 17:40:31 +02:00
committed by Riyyi
parent c8cdace4bf
commit b13c9da7a1
5 changed files with 165 additions and 31 deletions
+8
View File
@@ -37,6 +37,14 @@ func (h *Handle) LocalPackages() (map[string]dyalpm.Package, error) {
return localPkgs, nil
}
func (h *Handle) FindProvidingPackage(depName string) (string, bool) {
pkg := h.handle.FindDBSatisfier(h.syncDBs, depName)
if pkg != nil {
return pkg.Name(), true
}
return "", false
}
func (h *Handle) Release() error {
if h.handle != nil {
h.handle.Release()