mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
--noprovides now hides Yay's provider menu
--noprovides flag now takes the default option in the provider menu without showing the menu.
This commit is contained in:
parent
c2aeb4bc4e
commit
e71fb8617a
1 changed files with 4 additions and 0 deletions
|
@ -280,6 +280,10 @@ func (ds *depSolver) 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