]> git.saurik.com Git - apt.git/commit - test/integration/test-apt-by-hash-update
Implement simple by-hash for apt update
authorMichael Vogt <mvo@ubuntu.com>
Thu, 22 May 2014 08:49:35 +0000 (10:49 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Thu, 22 May 2014 09:00:32 +0000 (11:00 +0200)
commit50d98a1be2e15f44dea23a5d3840c79366a42fe0
tree9ccb59516b2d03c1c6f335a0f11cb6957f091c45
parente110d7bf5675f484c06b82f621ac98bedc464865
Implement simple by-hash for apt update

This implements a apt update schema that get the indexfiles by the
hash instead of the name. The rational is that updates to the archive
servers/mirrors are not atomic so the client may have the previous
version of the Release file when the server updates to a new
Release file and new Packages/Sources/Translations indexes. By
keeping the files around by their hash we can still get the previous
indexfile without a hashsum mismatch.

Enable with APT::Acquire::By-Hash=1
apt-pkg/acquire-item.cc
apt-pkg/indexrecords.cc
test/integration/test-apt-by-hash-update [new file with mode: 0755]