]> git.saurik.com Git - apt.git/commit - apt-pkg/init.cc
add insecure (and weak) allow-options for sources.list
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 20 Jun 2016 18:50:43 +0000 (20:50 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 22 Jun 2016 12:05:01 +0000 (14:05 +0200)
commitd03b947b0ce4f87d7d5cc48d4d274ab3bd0b289a
tree36b17da3040ffc4181e20e4b1c254671c2b24e3a
parent5da51e0e2da3f055306562d38103b06a23d81719
add insecure (and weak) allow-options for sources.list

Weak had no dedicated option before and Insecure and Downgrade were both
global options, which given the effect they all have on security is
rather bad. Setting them for individual repositories only isn't great
but at least slightly better and also more consistent with other
settings for repositories.
16 files changed:
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
apt-pkg/acquire-worker.cc
apt-pkg/deb/debmetaindex.cc
apt-pkg/deb/debmetaindex.h
apt-pkg/indexcopy.cc
apt-pkg/indexfile.cc
apt-pkg/indexfile.h
apt-pkg/init.cc
apt-private/private-cmndline.cc
doc/apt-secure.8.xml
doc/apt.conf.5.xml
doc/sources.list.5.xml
test/integration/test-apt-update-nofallback
test/integration/test-apt-update-weak-hashes
test/integration/test-releasefile-verification