diff options
author | Matthias Klumpp <matthias@tenstral.net> | 2021-01-11 21:39:35 +0100 |
---|---|---|
committer | Matthias Klumpp <matthias@tenstral.net> | 2021-01-11 21:40:01 +0100 |
commit | 6c16caeeb01c7ff8cad73fbcebf60fb23a5d40c4 (patch) | |
tree | bc2f7be625cac262702a5fb1380be2dfb00fd052 | |
parent | cf73b01a677e787088e78a3572a51888ade1aa03 (diff) |
aptcc: Auto-remove old kernels, unless configured otherwise
-rw-r--r-- | backends/aptcc/apt-intf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/aptcc/apt-intf.cpp b/backends/aptcc/apt-intf.cpp index 2a49928d4..f70faa3d1 100644 --- a/backends/aptcc/apt-intf.cpp +++ b/backends/aptcc/apt-intf.cpp @@ -156,6 +156,9 @@ bool AptIntf::init(gchar **localDebs) m_cache->Close(); } + // default settings + _config->CndSet("APT::Get::AutomaticRemove::Kernels", _config->FindB("APT::Get::AutomaticRemove", true)); + m_interactive = pk_backend_job_get_interactive(m_job); if (!m_interactive) { // Do not ask about config updates if we are not interactive |