From 33cb8ac173733b716cbaec5ae0e7296cd75bca8d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 17 Sep 2014 14:11:50 +0200 Subject: merge 0.9.7.9+deb7u3 --- cmdline/apt-get.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmdline') diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index 112b7ca3f..ee10a5301 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -2373,6 +2373,7 @@ bool DoDownload(CommandLine &CmdL) pkgSourceList *SrcList = Cache.GetSourceList(); bool gotAll = true; + std::string UntrustedList; for (APT::VersionList::const_iterator Ver = verset.begin(); Ver != verset.end(); ++Ver) @@ -2396,6 +2397,8 @@ bool DoDownload(CommandLine &CmdL) gotAll = false; continue; } + if (index->IsTrusted() == false) + UntrustedList += Pkg.Name() + string(" "); string uri = index->ArchiveURI(rec.FileName()); strprintf(descr, _("Downloading %s %s"), Pkg.Name(), Ver.VerStr()); // get the most appropriate hash @@ -2424,6 +2427,9 @@ bool DoDownload(CommandLine &CmdL) return true; } + if (UntrustedList != "" && !AuthPrompt(UntrustedList, false)) + return false; + return (Fetcher.Run() == pkgAcquire::Continue); } /*}}}*/ -- cgit v1.2.3