From: Michael Vogt Date: Fri, 29 Sep 2006 13:13:45 +0000 (+0200) Subject: * cmdline/apt-get.cc: X-Git-Tag: 0.7.21~246^2~19^2~9 X-Git-Url: https://git.hcoop.net/ntk/apt.git/commitdiff_plain/b255ff1a1161385b7f52454ec8661f058f05d6db * cmdline/apt-get.cc: - fix problem that AutomaticRemove can't be set permanently via preferences --- diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 570e1016..9b6e36e2 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1393,7 +1393,7 @@ bool DoUpdate(CommandLine &CmdL) bool DoAutomaticRemove(CacheFile &Cache) { bool Debug = _config->FindI("Debug::pkgAutoRemove",false); - bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove"); + bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove", false); pkgDepCache::ActionGroup group(*Cache); @@ -2560,7 +2560,6 @@ void GetInitialize() _config->Set("APT::Get::Fix-Broken",false); _config->Set("APT::Get::Force-Yes",false); _config->Set("APT::Get::List-Cleanup",true); - _config->Set("APT::Get::AutomaticRemove",false); } /*}}}*/ // SigWinch - Window size change signal handler /*{{{*/