forked from Proxmox/proxmox
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:
parent
2a070da065
commit
415d60daf9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user