mirror of
https://github.com/mudler/luet.git
synced 2025-09-05 09:10:43 +00:00
🔧 Consider removals when appending packages to be uninstalled
This commit is contained in:
@@ -31,7 +31,9 @@ func (s *System) OSCheck() (notFound pkg.Packages) {
|
||||
defer s.Unlock()
|
||||
for f, p := range s.fileIndex {
|
||||
if _, err := os.Lstat(filepath.Join(s.Target, f)); err != nil {
|
||||
notFound = append(notFound, p)
|
||||
if _, err := s.Database.FindPackage(p); err == nil {
|
||||
notFound = append(notFound, p)
|
||||
}
|
||||
}
|
||||
}
|
||||
notFound = notFound.Unique()
|
||||
|
Reference in New Issue
Block a user