mirror of
https://github.com/Jguer/yay
synced 2024-09-06 00:23:55 +00:00
Hide provider menu with --noprovides
This feature was already implemented in
e71fb8617a
but was accidently reverted.
This commit is contained in:
parent
6cd47dd83c
commit
125e716547
|
@ -428,6 +428,10 @@ func (dp *depPool) findSatisfierAurCache(dep string) *rpc.Pkg {
|
|||
}
|
||||
}
|
||||
|
||||
if !config.Provides && providers.Len() >= 1 {
|
||||
return providers.Pkgs[0]
|
||||
}
|
||||
|
||||
if providers.Len() == 1 {
|
||||
return providers.Pkgs[0]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue