diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-14 11:49:45 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-14 12:38:18 +0200 |
commit | b381a482eab0fc7b65b63cf0512ef1f97d775e34 (patch) | |
tree | 49e759c923d2db55e77b9c9910a1c3d17b9ed303 /apt-private/private-download.cc | |
parent | 51c4e07f4cba0615ff269b5a8d04dfd3d1313b00 (diff) |
Replace --force-yes by various options starting with --allow
This enables more fine grained control over such exceptions.
Diffstat (limited to 'apt-private/private-download.cc')
-rw-r--r-- | apt-private/private-download.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc index 099146187..18a9b1fbc 100644 --- a/apt-private/private-download.cc +++ b/apt-private/private-download.cc @@ -114,10 +114,12 @@ bool AuthPrompt(std::vector<std::string> const &UntrustedList, bool const Prompt return true; } - else if (_config->FindB("APT::Get::Force-Yes",false) == true) + else if (_config->FindB("APT::Get::Force-Yes",false) == true) { + _error->Warning(_("--force-yes is deprecated, use one of the options starting with --allow instead.")); return true; + } - return _error->Error(_("There are problems and -y was used without --force-yes")); + return _error->Error(_("There were unauthenticated packages and -y was used without --allow-unauthenticated")); } /*}}}*/ bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure)/*{{{*/ |