From f03f16d643c9d24907532d5b8f93fcec68800232 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 14 Mar 2024 11:26:53 +0100 Subject: [PATCH] fix #5249: apt: allow parsing Packages without Priority field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it seems there are repositories out there that don't (always) include it, and while it is required for the .deb packages themselves in Debian, the repository "spec" doesn't make it mandatory. Signed-off-by: Fabian Grünbichler --- proxmox-apt/src/deb822/packages_file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-apt/src/deb822/packages_file.rs b/proxmox-apt/src/deb822/packages_file.rs index b3c84b06..aec0a926 100644 --- a/proxmox-apt/src/deb822/packages_file.rs +++ b/proxmox-apt/src/deb822/packages_file.rs @@ -14,7 +14,7 @@ pub struct PackagesFileRaw { pub source: Option, pub version: String, pub section: Option, - pub priority: String, + pub priority: Option, pub architecture: String, pub essential: Option, pub depends: Option,