summaryrefslogtreecommitdiff
path: root/apt-pkg/cachefilter-patterns.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2021-02-03 21:47:00 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2021-02-04 11:00:00 +0100
commitc31ba27ecf7e35e03af34c3d74d3c6c93976f89c (patch)
treec788305084630b9cb4bc1818f019e246668a35e1 /apt-pkg/cachefilter-patterns.cc
parent3e53dbbe758a4e2da378ebf0296d8105d4a5804c (diff)
Limit on first patch size only for server-merged patches
APT tries to detect if applying patches is more costly than just downloading the complete index by combining the size of the patches. That is correct for client-side merging, but for server-side merging we actually don't know if we will jump directly from old to current or have still intermediate steps in between. With this commit we assume it will be a jump from old to current through as that is what dak implements and it seems reasonable if you go to the trouble of server side merging that the server does the entire merging in one file instead of leaving additional work for the client to do. Note that this just changes the heuristic to prevent apt from discarding patches as uneconomic in the now more common one merged-patch style, it still supports multiple merged patches as before. To resolve this cleanly we would need another field in the index file declaring which hash we will arrive at if a patch is applied (or a field differentiating between these merged-patch styles at least), but that seems like overkill for now.
Diffstat (limited to 'apt-pkg/cachefilter-patterns.cc')
0 files changed, 0 insertions, 0 deletions