]> git.saurik.com Git - apt.git/commit
condense parallel requests with the same hashes to one
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 15 Jun 2015 21:06:56 +0000 (23:06 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 15 Jun 2015 21:35:55 +0000 (23:35 +0200)
commit9d2a8a7388cf3b0bbbe92f6b0b30a533e1167f40
tree7cd6b13d7f0f8f26850cb44a88e70935ee86e68f
parent1eb1836f4b5397497bd34f0cf516e6e4e73117bf
condense parallel requests with the same hashes to one

It shouldn't be too common, but sometimes people have multiple mirrors
in the sources or otherwise repositories with the same content. Now that
we gracefully can handle multiple requests to the same URI, we can also
fold multiple requests with the same expected hashes into one. Note that
this isn't trying to find oppertunities for merging, but just merges if
it happens to encounter the oppertunity for it.

This is most obvious in the new testcase actually as it needs to delay
the action to give the acquire system enough time to figure out that
they can be merged.
14 files changed:
apt-pkg/acquire.cc
apt-private/acqprogress.cc
test/integration/framework
test/integration/skip-aptwebserver [deleted file]
test/integration/test-acquire-same-file-multiple-times
test/integration/test-acquire-same-repository-multiple-times [new file with mode: 0755]
test/integration/test-apt-get-source
test/integration/test-apt-get-source-arch
test/integration/test-apt-get-source-multisources
test/integration/test-apt-get-update-unauth-warning
test/integration/test-apt-progress-fd
test/integration/test-apt-update-ims
test/integration/test-bug-722207-print-uris-even-if-very-quiet
test/integration/test-bug-738785-switch-protocol