mirror of
https://github.com/mudler/luet.git
synced 2025-08-24 01:48:38 +00:00
Inverted options
This commit is contained in:
parent
95e640c9d0
commit
a216f71d53
@ -152,9 +152,9 @@ var buildCmd = &cobra.Command{
|
|||||||
|
|
||||||
var solverOpts solver.Options
|
var solverOpts solver.Options
|
||||||
if concurrent {
|
if concurrent {
|
||||||
solverOpts = solver.Options{Type: solver.SingleCoreSimple}
|
|
||||||
} else {
|
|
||||||
solverOpts = solver.Options{Type: solver.ParallelSimple}
|
solverOpts = solver.Options{Type: solver.ParallelSimple}
|
||||||
|
} else {
|
||||||
|
solverOpts = solver.Options{Type: solver.SingleCoreSimple}
|
||||||
}
|
}
|
||||||
|
|
||||||
luetCompiler := compiler.NewLuetCompiler(compilerBackend, generalRecipe.GetDatabase(), opts, solverOpts)
|
luetCompiler := compiler.NewLuetCompiler(compilerBackend, generalRecipe.GetDatabase(), opts, solverOpts)
|
||||||
|
@ -82,9 +82,9 @@ var installCmd = &cobra.Command{
|
|||||||
LuetCfg.GetSolverOptions().MaxAttempts = attempts
|
LuetCfg.GetSolverOptions().MaxAttempts = attempts
|
||||||
|
|
||||||
if concurrent {
|
if concurrent {
|
||||||
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
|
|
||||||
} else {
|
|
||||||
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
|
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
|
||||||
|
} else {
|
||||||
|
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug("Solver", LuetCfg.GetSolverOptions().CompactString())
|
Debug("Solver", LuetCfg.GetSolverOptions().CompactString())
|
||||||
|
@ -69,9 +69,9 @@ var uninstallCmd = &cobra.Command{
|
|||||||
LuetCfg.GetSolverOptions().Discount = float32(discount)
|
LuetCfg.GetSolverOptions().Discount = float32(discount)
|
||||||
LuetCfg.GetSolverOptions().MaxAttempts = attempts
|
LuetCfg.GetSolverOptions().MaxAttempts = attempts
|
||||||
if concurrent {
|
if concurrent {
|
||||||
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
|
|
||||||
} else {
|
|
||||||
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
|
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
|
||||||
|
} else {
|
||||||
|
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
|
||||||
}
|
}
|
||||||
Debug("Solver", LuetCfg.GetSolverOptions().CompactString())
|
Debug("Solver", LuetCfg.GetSolverOptions().CompactString())
|
||||||
|
|
||||||
|
@ -71,9 +71,9 @@ var upgradeCmd = &cobra.Command{
|
|||||||
LuetCfg.GetSolverOptions().Discount = float32(discount)
|
LuetCfg.GetSolverOptions().Discount = float32(discount)
|
||||||
LuetCfg.GetSolverOptions().MaxAttempts = attempts
|
LuetCfg.GetSolverOptions().MaxAttempts = attempts
|
||||||
if concurrent {
|
if concurrent {
|
||||||
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
|
|
||||||
} else {
|
|
||||||
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
|
LuetCfg.GetSolverOptions().Implementation = solver.ParallelSimple
|
||||||
|
} else {
|
||||||
|
LuetCfg.GetSolverOptions().Implementation = solver.SingleCoreSimple
|
||||||
}
|
}
|
||||||
|
|
||||||
Debug("Solver", LuetCfg.GetSolverOptions().String())
|
Debug("Solver", LuetCfg.GetSolverOptions().String())
|
||||||
|
Loading…
Reference in New Issue
Block a user