diff --git a/pkg/dep/dep_graph.go b/pkg/dep/dep_graph.go index a7fdfc77..aab48e8f 100644 --- a/pkg/dep/dep_graph.go +++ b/pkg/dep/dep_graph.go @@ -478,15 +478,18 @@ func (g *Grapher) findDepsFromAUR(ctx context.Context, for i := range aurPkgs { pkg := &aurPkgs[i] + if deps.Contains(pkg.Name) { + g.providerCache[pkg.Name] = append(g.providerCache[pkg.Name], *pkg) + } + for _, val := range pkg.Provides { + if val == pkg.Name { + continue + } if deps.Contains(val) { g.providerCache[val] = append(g.providerCache[val], *pkg) } } - - if deps.Contains(pkg.Name) { - g.providerCache[pkg.Name] = append(g.providerCache[pkg.Name], *pkg) - } } }