Bug#1121878: Default::Packages::Compress=zstd does not work (Packges.zst without Packages is ignored)
"Trent W. Buck" <[email protected]> Thu, 4 Dec 2025 18:33:08 +1100
| Newsgroups | gmane.linux.debian.apt.devel |
|---|---|
| Message-ID | <0620aeac-317d-456f-9b4b-aa156358260c__13275.3806699597$1764833724$gmane$org@gmail.com> |
On 4/12/25 18:13, Julian Andres Klode wrote: >> it is just confusing/irritating that Packages has to exist, >> even though nothing ever downloads it. > Control: severity -1 wishlist > > A Release file always needs to list the decompressed file otherwise the file cannot be verified for correctness post extraction. > The uncompressed file doesn't need to exist for that. > > This is documented in the repository format specification OK, that makes sense. I thought/hoped apt could validate the sha512 + length of Packages.zst *before* decompression, and therefore wouldn't need to also validate the sha512 + length of Packages *after* decompression. But if it did that and then made a mistake (checking neither in some edge case scenario), the impact would be high. So I think the existing behaviour (always checking the uncompressed sum+length) is reasonable.