summaryrefslogtreecommitdiff
path: root/apt-private/private-download.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-05-30 14:47:56 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-06-02 08:53:09 +0200
commita3f1d60cb75ab83f63a52a43c056a4752c8fdeb2 (patch)
tree00acd57805d51fe2422fe6b0d5bc4fcbaca6247e /apt-private/private-download.cc
parent7adaab0430308a17f1db279f0ebbed8068dd4308 (diff)
Show unauthenticated warning for source packages as well
This will show the same unauthenticated warning for source packages as for binary packages and will not download a source package if it is unauthenticated. This can be overridden with --allow-unauthenticated Closes: #749795
Diffstat (limited to 'apt-private/private-download.cc')
-rw-r--r--apt-private/private-download.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-private/private-download.cc b/apt-private/private-download.cc
index a095f0c67..be7d23c31 100644
--- a/apt-private/private-download.cc
+++ b/apt-private/private-download.cc
@@ -28,6 +28,11 @@ bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser)
if (UntrustedList == "")
return true;
+ return AuthPrompt(UntrustedList, PromptUser);
+}
+
+bool AuthPrompt(std::string UntrustedList, bool const PromptUser)
+{
ShowList(c2out,_("WARNING: The following packages cannot be authenticated!"),UntrustedList,"");
if (_config->FindB("APT::Get::AllowUnauthenticated",false) == true)