summaryrefslogtreecommitdiff
path: root/apt-private/private-install.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-07-27 15:47:59 +0200
committerJulian Andres Klode <jak@debian.org>2017-07-27 15:47:59 +0200
commiteb0ccb003ceedac0fd78fee05d7b8119dd04c48b (patch)
treee57bfde27e898972beaf875ea9315394e7502087 /apt-private/private-install.cc
parente1d66c94e6ed6d79ba0f089fc00789bf7fd161d8 (diff)
Always warn if --force-yes is validly specified, not just if used
The code only used to warn when it came into a situation where something actually had to be forced. Warn directly after parsing the command-line instead, that's more accurate.
Diffstat (limited to 'apt-private/private-install.cc')
-rw-r--r--apt-private/private-install.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc
index aafe5542d..b24b96351 100644
--- a/apt-private/private-install.cc
+++ b/apt-private/private-install.cc
@@ -188,10 +188,6 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety)
if (_config->FindI("quiet",0) >= 2 ||
_config->FindB("APT::Get::Assume-Yes",false) == true)
{
- if (_config->FindB("APT::Get::Force-Yes",false) == true) {
- _error->Warning(_("--force-yes is deprecated, use one of the options starting with --allow instead."));
- }
-
if (Fail == true && _config->FindB("APT::Get::Force-Yes",false) == false) {
if (Essential == true && _config->FindB("APT::Get::allow-remove-essential", false) == false)
return _error->Error(_("Essential packages were removed and -y was used without --allow-remove-essential."));