]> git.saurik.com Git - apt.git/commitdiff
* cmdline/apt-get.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 29 Sep 2006 13:13:45 +0000 (15:13 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 29 Sep 2006 13:13:45 +0000 (15:13 +0200)
  - fix problem that AutomaticRemove can't be set permanently via preferences

cmdline/apt-get.cc

index 570e1016cec7896581681613560e73eee8368862..9b6e36e210144614576b678b08b7ffae05062b6e 100644 (file)
@@ -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                                /*{{{*/