From 9c2fa9bc2df0b5e9db8be25bfb9eca5e3fb9c4a2 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 9 May 2025 21:46:12 +0200 Subject: [PATCH] remove pacsift workaround --- proto_package.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/proto_package.go b/proto_package.go index 92ed916..3a7cbe7 100644 --- a/proto_package.go +++ b/proto_package.go @@ -501,18 +501,12 @@ func (p *ProtoPackage) isAvailable(ctx context.Context, h *alpm.Handle) bool { log.Warningf("error getting packages from pacsift for %s: %v", p.Pkgbase, err) return false } else if len(res) == 0 { + log.Warningf("error getting packages from pacsift for %s", p.Pkgbase) return false } - // workaround for https://github.com/andrewgregory/pacutils/issues/66 - // TODO: remove once fixed - rRes := reReplacePacsiftWarning.ReplaceAllString(string(res), "") - if strings.TrimSpace(rRes) == "" { - return false - } - - if len(strings.Split(strings.TrimSpace(rRes), "\n")) > 0 { - pacsiftLines := strings.Split(strings.TrimSpace(rRes), "\n") + if len(strings.Split(strings.TrimSpace(string(res)), "\n")) > 0 { + pacsiftLines := strings.Split(strings.TrimSpace(string(res)), "\n") var splitPkgs []string for _, line := range pacsiftLines {