Enhance uninstall output

This commit is contained in:
Ettore Di Giacinto 2020-05-03 13:16:52 +02:00
parent 584b980644
commit ada9d886fa
No known key found for this signature in database
GPG Key ID: 1ADA699B145A2D1C

View File

@ -569,9 +569,13 @@ func (l *LuetInstaller) uninstall(p pkg.Package, s *System) error {
} }
func (l *LuetInstaller) Uninstall(p pkg.Package, s *System) error { func (l *LuetInstaller) Uninstall(p pkg.Package, s *System) error {
Spinner(32)
defer SpinnerStop()
Info("Uninstalling :package:", p.HumanReadableString(), "hang tight")
// compute uninstall from all world - remove packages in parallel - run uninstall finalizer (in order) TODO - mark the uninstallation in db // compute uninstall from all world - remove packages in parallel - run uninstall finalizer (in order) TODO - mark the uninstallation in db
// Get installed definition // Get installed definition
checkConflicts := l.Options.CheckConflicts checkConflicts := l.Options.CheckConflicts
full := l.Options.FullUninstall full := l.Options.FullUninstall
if l.Options.Force == true { // IF forced, we want to remove the package and all its requires if l.Options.Force == true { // IF forced, we want to remove the package and all its requires
@ -591,6 +595,7 @@ func (l *LuetInstaller) Uninstall(p pkg.Package, s *System) error {
} }
if !l.Options.NoDeps { if !l.Options.NoDeps {
Info("Finding :package:", p.HumanReadableString(), "dependency graph :deciduous_tree:")
solv := solver.NewResolver(installedtmp, installedtmp, pkg.NewInMemoryDatabase(false), l.Options.SolverOptions.Resolver()) solv := solver.NewResolver(installedtmp, installedtmp, pkg.NewInMemoryDatabase(false), l.Options.SolverOptions.Resolver())
solution, err := solv.Uninstall(p, checkConflicts, full) solution, err := solv.Uninstall(p, checkConflicts, full)
if err != nil && !l.Options.Force { if err != nil && !l.Options.Force {