diff --git a/pkg/installer/installer.go b/pkg/installer/installer.go index 7b199dc5..8b0a157f 100644 --- a/pkg/installer/installer.go +++ b/pkg/installer/installer.go @@ -815,14 +815,8 @@ func (l *LuetInstaller) computeUninstall(p pkg.Package, s *System) (pkg.Packages return toUninstall, nil } func (l *LuetInstaller) Uninstall(p pkg.Package, s *System) error { - if p.IsSelector() { - if packs, _ := s.Database.FindPackages(p); len(packs) == 0 { - return errors.New("Package not found in the system") - } - } else { - if _, err := s.Database.FindPackage(p); err != nil { - return errors.Wrap(err, "package not found in the system") - } + if packs, _ := s.Database.FindPackages(p); len(packs) == 0 { + return errors.New("Package not found in the system") } Spinner(32)