From f6cb0bc4603cac536aa7ecf3fb8674e95239dbeb Mon Sep 17 00:00:00 2001 From: jguer Date: Tue, 6 Oct 2020 13:40:19 +0200 Subject: [PATCH] fix(provide): fix dep pool populate with unversioned deps --- pkg/dep/depPool.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/dep/depPool.go b/pkg/dep/depPool.go index 6db50966..68da2fd7 100644 --- a/pkg/dep/depPool.go +++ b/pkg/dep/depPool.go @@ -110,7 +110,7 @@ func (dp *Pool) ResolveTargets(pkgs []string, continue } - // If there'ss a different prefix only look in that repo + // If there's a different prefix only look in that repo if target.DB != "" { foundPkg = dp.AlpmExecutor.SatisfierFromDB(target.DepString(), target.DB) } else { @@ -180,6 +180,7 @@ func (dp *Pool) findProvides(pkgs stringset.StringSet) error { // Hack for a bigger search result, if the user wants // java-envronment we can search for just java instead and get // more hits. + pkg, _, _ = splitDep(pkg) // openimagedenoise-git > ispc-git #1234 words := strings.Split(pkg, "-") for i := range words {