From 5100fea56acd3ca4d091960de84486c4d620e191 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Mon, 22 Jan 2018 10:59:15 +0000 Subject: [PATCH] Fix install not listing all dependencies Sometimes yay will not list all of the dependancies it needs when installing packages. I mostly noticed this on libjpeg-turbo and the issue was that the packages requring libjpeg-turbo were only requesting libjpeg which was provided by libjpeg-turbo. Now when we cache package info from the syncdb also alias the package name to all of it's provides. --- dependencies.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dependencies.go b/dependencies.go index b7e37374..518a0cb6 100644 --- a/dependencies.go +++ b/dependencies.go @@ -175,6 +175,10 @@ func repoTreeRecursive(pkg *alpm.Package, dt *depTree, localDb *alpm.Db, syncDb } dt.Repo[pkg.Name()] = pkg + (*pkg).Provides().ForEach(func(dep alpm.Depend) (err error) { + dt.Repo[dep.Name] = pkg + return nil + }) (*pkg).Depends().ForEach(func(dep alpm.Depend) (err error) { _, exists := dt.Repo[dep.Name]