public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox] fix #5249: apt: allow parsing Packages without Priority field
@ 2024-03-14 10:26 Fabian Grünbichler
  2024-04-18 12:27 ` Fabian Grünbichler
  2024-04-19  6:49 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Fabian Grünbichler @ 2024-03-14 10:26 UTC (permalink / raw)
  To: pbs-devel

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@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-19  6:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-14 10:26 [pbs-devel] [PATCH proxmox] fix #5249: apt: allow parsing Packages without Priority field Fabian Grünbichler
2024-04-18 12:27 ` Fabian Grünbichler
2024-04-19  6:49 ` [pbs-devel] applied: " Thomas Lamprecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal