detect Releasefile IMS hits even if the server doesn't
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 13 May 2015 14:09:12 +0000 (16:09 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 13 May 2015 14:09:12 +0000 (16:09 +0200)
commit8eafc759544298211cd0bfaa3919afc0fadd47d1
treee1a6e74d6d1abdc177316b9422aae3723f727732
parent495b7a615a2d8f485beadf88c6ed298f5bbe50c2
detect Releasefile IMS hits even if the server doesn't

Not all servers we are talking to support If-Modified-Since and some are
not even sending Last-Modified for us, so in an effort to detect such
hits we run a hashsum check on the 'old' compared to the 'new' file, we
got the hashes for the 'new' already for "free" from the methods anyway
and hence just need to calculated the old ones.

This allows us to detect hits even with unsupported servers, which in
turn means we benefit from all the new hit behavior also here.
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
apt-pkg/acquire-worker.cc
methods/https.cc
test/integration/framework
test/integration/test-apt-update-expected-size
test/integration/test-apt-update-not-modified
test/integration/test-apt-update-rollback
test/integration/test-apt-update-transactions