[pve-devel] [PATCH proxmox] release file: extend component fixup to bookworm

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Jun 29 12:30:03 CEST 2023


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

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Reported on the forum: https://forum.proxmox.com/threads/proxmox-offline-mirror-released.115219/page-3#post-568763

and fix verified by recompiling proxmox-offline-mirror with patched librust-proxmox-apt-dev

this special casing could maybe be moved to POM at some point..

 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 fcfedac..3973dad 100644
--- a/proxmox-apt/src/deb822/release_file.rs
+++ b/proxmox-apt/src/deb822/release_file.rs
@@ -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
-- 
2.39.2






More information about the pve-devel mailing list