From e71fb8617a5b014d2f875554e270b5b47d9182d1 Mon Sep 17 00:00:00 2001 From: Peter Dyer Date: Thu, 18 Oct 2018 23:12:51 +0100 Subject: [PATCH] --noprovides now hides Yay's provider menu --noprovides flag now takes the default option in the provider menu without showing the menu. --- depSolver.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/depSolver.go b/depSolver.go index 100f296e..044cb9b9 100644 --- a/depSolver.go +++ b/depSolver.go @@ -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] }