Inverted options

This commit is contained in:
Ettore Di Giacinto 2020-10-25 20:09:22 +01:00 committed by Ettore Di Giacinto
parent 95e640c9d0
commit a216f71d53
4 changed files with 8 additions and 8 deletions

View File

@ -152,9 +152,9 @@ var buildCmd = &cobra.Command{
var solverOpts solver.Options
if concurrent {
solverOpts = solver.Options{Type: solver.SingleCoreSimple}
} else {
solverOpts = solver.Options{Type: solver.ParallelSimple}
} else {
solverOpts = solver.Options{Type: solver.SingleCoreSimple}
}
luetCompiler := compiler.NewLuetCompiler(compilerBackend, generalRecipe.GetDatabase(), opts, solverOpts)

View File

@ -82,9 +82,9 @@ var installCmd = &cobra.Command{
LuetCfg.GetSolverOptions().MaxAttempts = attempts
if concurrent {
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
} else {
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
} else {
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
}
Debug("Solver", LuetCfg.GetSolverOptions().CompactString())

View File

@ -69,9 +69,9 @@ var uninstallCmd = &cobra.Command{
LuetCfg.GetSolverOptions().Discount = float32(discount)
LuetCfg.GetSolverOptions().MaxAttempts = attempts
if concurrent {
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
} else {
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
} else {
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
}
Debug("Solver", LuetCfg.GetSolverOptions().CompactString())

View File

@ -71,9 +71,9 @@ var upgradeCmd = &cobra.Command{
LuetCfg.GetSolverOptions().Discount = float32(discount)
LuetCfg.GetSolverOptions().MaxAttempts = attempts
if concurrent {
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
} else {
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
} else {
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
}
Debug("Solver", LuetCfg.GetSolverOptions().String())