When attempting to uninstall, do it from the internal db so it can resolve the current versions

This commit is contained in:
Ettore Di Giacinto
2020-12-08 02:04:02 +01:00
parent 9ca5d24856
commit a3cb0ed17f

View File

@@ -607,7 +607,7 @@ func (s *Solver) Uninstall(checkconflicts, full bool, packs ...pkg.Package) (pkg
}
}
s2 := NewSolver(Options{Type: SingleCoreSimple}, pkg.NewInMemoryDatabase(false), s.DefinitionDatabase, pkg.NewInMemoryDatabase(false))
s2 := NewSolver(Options{Type: SingleCoreSimple}, pkg.NewInMemoryDatabase(false), s.InstalledDatabase, pkg.NewInMemoryDatabase(false))
s2.SetResolver(s.Resolver)
// Get the requirements to install the candidate