]> git.saurik.com Git - apt.git/commit - test/integration/test-partial-file-support
improve partial/ cleanup in abort and failure cases
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 27 Apr 2015 08:59:27 +0000 (10:59 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 11 May 2015 15:22:32 +0000 (17:22 +0200)
commit146f7715a9f36d246b461255b3c683b479296915
tree9e05aa2904d1073bc02949955cc5b2769960954a
parent05f64ca2e483709faa6bc69dfa79129d2d4c679e
improve partial/ cleanup in abort and failure cases

Especially pdiff-enhanced downloads have the tendency to fail for
various reasons from which we can recover and even a successful download
used to leave the old unpatched index in partial/.

By adding a new method responsible for making the transaction of an
individual file happen we can at specialisations especially for abort
cases to deal with the cleanup.

This also helps in keeping the compressed indexes around if another
index failed instead of keeping the decompressed files, which we
wouldn't pick up in the next call.
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
test/integration/framework
test/integration/test-apt-update-expected-size
test/integration/test-partial-file-support
test/integration/test-pdiff-usage