Enable PreserveSystemEssentialData on Upgrade/Uninstall

This commit is contained in:
Ettore Di Giacinto
2020-12-09 21:07:50 +01:00
parent d472dee19b
commit f109bab2b4
2 changed files with 19 additions and 17 deletions

View File

@@ -89,6 +89,7 @@ var uninstallCmd = &cobra.Command{
FullCleanUninstall: fullClean,
CheckConflicts: checkconflicts,
Ask: !yes,
PreserveSystemEssentialData: true,
})
if LuetCfg.GetSystem().DatabaseEngine == "boltdb" {

View File

@@ -92,6 +92,7 @@ var upgradeCmd = &cobra.Command{
SolverUpgrade: universe,
RemoveUnavailableOnUpgrade: clean,
UpgradeNewRevisions: sync,
PreserveSystemEssentialData: true,
Ask: !yes,
})
inst.Repositories(repos)