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.
This commit is contained in:
morganamilo committed 2018-03-12 18:49:03 +00:00
1 parent b562123353
commit 6e97fa7cb6
1 file changed
+4
+4
View File
@@ -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)