]> git.proxmox.com Git - proxmox-apt.git/commit
release-file: improve invalid file-reference handling
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 4 Aug 2022 09:43:50 +0000 (11:43 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 5 Aug 2022 07:10:07 +0000 (09:10 +0200)
commitb2f851da87f5ccd9e66ab66572e4116741b7ff63
tree469e3eb2c5e7ebf5e052db2f268ad458bd826db6
parent1148b795f380c0aa77cd61f7f3d8b55cea15a4e8
release-file: improve invalid file-reference handling

if we encounter a file reference pointing to a component that is not
contained in the componenents list, we can just ignore it as unknown.
only treat parsing errors for references pointing to known components as
actual errors.

this currently triggers with (In)Release files for debian-updates and
debian-security, which reference (empty) files for a "non-free-firmware"
component that is not listed in the `Components` field of the release
file.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/deb822/release_file.rs