diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-13 11:32:32 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-09-13 11:32:32 +0200 |
commit | c97fd4ec4a34eb15eb8985890a47e768f4b94f0d (patch) | |
tree | 8546e7a56c2556daa57a25c0747d3d55651776d8 /cmdline/apt-get.cc | |
parent | c15f569038c9d08cfb5186945d9c5095f7776768 (diff) |
* cmdline/apt-get.cc:
- 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
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 5e1ccb0c0..411b16e90 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1398,7 +1398,8 @@ bool DoAutomaticRemove(CacheFile &Cache) 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")); |