From 445e032eee1e138f5fdefda259a54775d006e11d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Tue, 25 Jul 2023 10:31:10 +0200 Subject: [PATCH] fix #4868: map missing section field to 'unknown' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit needed for supporting some third-party repositories. Signed-off-by: Fabian Grünbichler --- proxmox-apt/src/deb822/packages_file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxmox-apt/src/deb822/packages_file.rs b/proxmox-apt/src/deb822/packages_file.rs index 90b21c63..b3c84b06 100644 --- a/proxmox-apt/src/deb822/packages_file.rs +++ b/proxmox-apt/src/deb822/packages_file.rs @@ -13,7 +13,7 @@ pub struct PackagesFileRaw { pub package: String, pub source: Option, pub version: String, - pub section: String, + pub section: Option, pub priority: String, pub architecture: String, pub essential: Option, @@ -84,7 +84,7 @@ impl TryFrom for PackageEntry { size: value.size.parse::()?, installed_size, checksums: CheckSums::default(), - section: value.section, + section: value.section.unwrap_or("unknown".to_owned()), }; if let Some(md5) = value.md5_sum {