mirror of
https://github.com/Jguer/yay.git
synced 2025-10-06 00:05:37 -04:00
Have MakeOnly live up to it's name
Fix for packages which are makedeps to one package but runtime deps to another showing up in MakeOnly
This commit is contained in:
parent
03295c3f3f
commit
3c7118e9de
@ -80,6 +80,22 @@ func getDepCatagories(pkgs []string, dt *depTree) (*depCatagories, error) {
|
||||
}
|
||||
}
|
||||
|
||||
for _, base := range dc.Bases {
|
||||
for _, pkg := range base {
|
||||
for _, dep := range pkg.Depends {
|
||||
dc.MakeOnly.remove(dep)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for _, pkg := range dc.Repo {
|
||||
pkg.Depends().ForEach(func(_dep alpm.Depend) error {
|
||||
dep := _dep.Name
|
||||
dc.MakeOnly.remove(dep)
|
||||
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
return dc, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user