[pbs-devel] [PATCH proxmox] fix #5249: apt: allow parsing Packages without Priority field
Fabian Grünbichler
f.gruenbichler at proxmox.com
Thu Mar 14 11:26:53 CET 2024
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 <f.gruenbichler at proxmox.com>
---
Notes:
technically a breaking change, but we don't use the priority field anywhere..
requires a bump+rebuild of POM to take effect
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<String>,
pub version: String,
pub section: Option<String>,
- pub priority: String,
+ pub priority: Option<String>,
pub architecture: String,
pub essential: Option<String>,
pub depends: Option<String>,
--
2.39.2
More information about the pbs-devel
mailing list