diff --git a/libdnf/goal/Goal.cpp b/libdnf/goal/Goal.cpp index 7def8371c..3684ce4bc 100644 --- a/libdnf/goal/Goal.cpp +++ b/libdnf/goal/Goal.cpp @@ -1631,8 +1631,6 @@ Goal::Impl::protectedInRemovals() if ((!protectedPkgs || !protectedPkgs->size()) && !protect_running_kernel) return false; auto pkgRemoveList = listResults(SOLVER_TRANSACTION_ERASE, 0); - auto pkgObsoleteList = listResults(SOLVER_TRANSACTION_OBSOLETED, 0); - map_or(pkgRemoveList.getMap(), pkgObsoleteList.getMap()); removalOfProtected.reset(new PackageSet(pkgRemoveList)); Id id = -1;