pkg from only trusted sources keeps being trusted
authorDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 26 Sep 2013 11:32:49 +0000 (13:32 +0200)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Thu, 26 Sep 2013 12:02:08 +0000 (14:02 +0200)
commit6c34cccad778bd8db0ce03b7596cbef03afa9688
tree1801df1d599468a9eb8cc69ce684d53287f51b98
parentb4140ecf132d15adf740f23330054b6788d4f9a6
pkg from only trusted sources keeps being trusted

--allow-unauthenticated switches the download to a pre-0.6 system in
which a package can come from any source, rather than that trusted
packages can only come from trusted sources.

To allow this the flag used to set all packages as untrusted, which is a
bit much, so we check now if the package can be acquired via an
untrusted source and only if this is the case set it as untrusted.

As APT nowadays supports setting sources as trusted via a flag in the
sources.list this mode shouldn't be used that much anymore though.

[Note that this is not the patch from the BTS]

Closes: 617690
apt-pkg/acquire-item.cc
test/integration/test-bug-596498-trusted-unsigned-repo
test/integration/test-bug-617690-allow-unauthenticated-makes-all-untrusted [new file with mode: 0755]