From 415d60daf972bcd2b2bdd05b9fae0a6f6ae58d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 29 Jun 2023 12:30:03 +0200 Subject: [PATCH] release file: extend component fixup to bookworm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit else mirroring bookworm-security will skip *all* components.. Signed-off-by: Fabian Grünbichler --- proxmox-apt/src/deb822/release_file.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proxmox-apt/src/deb822/release_file.rs b/proxmox-apt/src/deb822/release_file.rs index fcfedac0..3973dad0 100644 --- a/proxmox-apt/src/deb822/release_file.rs +++ b/proxmox-apt/src/deb822/release_file.rs @@ -347,9 +347,10 @@ impl TryFrom 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