From 6e97fa7cb69db8f96132f73c4e4d5a768d574541 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Mon, 12 Mar 2018 18:49:03 +0000 Subject: [PATCH] Ensure targets are never listed as make depends when doing `yay -S foo bar` where `bar` is a makedep of `foo` in rare cases bar would be listed as [aur make] even thought it was explicitly requested. --- dependencies.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dependencies.go b/dependencies.go index 1c8da00f..8192b4cf 100644 --- a/dependencies.go +++ b/dependencies.go @@ -131,6 +131,10 @@ func getDepCatagories(pkgs []string, dt *depTree) (*depCatagories, error) { }) } + for _, pkg := range pkgs { + dc.MakeOnly.remove(pkg) + } + dupes := make(map[*alpm.Package]struct{}) filteredRepo := make([]*alpm.Package, 0)