mirror of
https://github.com/mudler/luet.git
synced 2025-08-14 13:33:51 +00:00
Enhance uninstall output
This commit is contained in:
parent
584b980644
commit
ada9d886fa
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user