release file: extend component fixup to bookworm

else mirroring bookworm-security will skip *all* components..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2023-06-29 12:30:03 +02:00 committed by Thomas Lamprecht
parent 2a070da065
commit 415d60daf9

View File

@ -347,9 +347,10 @@ impl TryFrom<ReleaseFileRaw> for ReleaseFile {
if let Some(val) = value.extra_fields.get("Acquire-By-Hash") {
parsed.aquire_by_hash = *val == "yes";
}
// Fixup bullseye-security release files which have invalid components
// Fixup bullseye+-security release files which have invalid components
let codename = parsed.codename.as_deref();
if parsed.label.as_deref() == Some("Debian-Security")
&& parsed.codename.as_deref() == Some("bullseye-security")
&& (codename == Some("bullseye-security") || codename == Some("bookworm-security"))
{
parsed.components = parsed
.components