Explorar o código

--noprovides now hides Yay's provider menu

--noprovides flag now takes the default option in the provider menu
without showing the menu.
Peter Dyer %!s(int64=6) %!d(string=hai) anos
pai
achega
e71fb8617a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      depSolver.go

+ 4 - 0
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]
 	}