- only error out if both "APT::Get::Autoremove" is set to true and "APT::Get::Remove" to false, in this case the the save options wins and apt will abort
if(Debug)
std::cout << "DoAutomaticRemove()" << std::endl;
if(Debug)
std::cout << "DoAutomaticRemove()" << std::endl;
- if (_config->FindB("APT::Get::Remove",true) == false)
+ if (_config->FindB("APT::Get::AutomaticRemove") &&
+ _config->FindB("APT::Get::Remove",true) == false)
return _error->Error(_("We are not supposed to delete stuff, can't "
"start AutoRemover"));
return _error->Error(_("We are not supposed to delete stuff, can't "
"start AutoRemover"));