#807895 apt: Acquire::PDiffs::SizeLimit should check Index size as well

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Piotr Engelking
Date:
2015-12-14 13:21:04 UTC
Severity:
wishlist
#807895#5
Date:
2015-12-14 08:59:19 UTC
From:
To:
The Acquire::PDiffs::SizeLimit option should check size of the Index
file as well. Currently, apt happily downloads Packages.diff/Index even
if it is larger than Packages.gz. (The archive, luckily, seems not to
publish the Index in such a case, hence the reduced severity.)

Notice that the SizeLimit check should not add size of Index to size of
the patches, it should check them separately, as when the size of the
patches is known, the Index has already been downloaded.

Alternatively, a separate option could be introduced to limit the
percentage of the size of the Index compared to the size of the
targeted file.

#807895#10
Date:
2015-12-14 13:19:50 UTC
From:
To:
Hi all,

I have perhaps the same idea as the gentleman has proposed with
probably a slight twist. Those of us who are on mobile Internet (as
well as otherwise) do get into situations where while updating the
sources, you have to update the sources number of times in order for
apt to be satisfied and to get current listing. If such checks are
there, the user might not download wrong/incorrect sources and also
might also have some difference in mirror bandwidth (better for mirror
hosting providers).