fix #5249: apt: allow parsing Packages without Priority field

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>
This commit is contained in:
Fabian Grünbichler 2024-03-14 11:26:53 +01:00 committed by Thomas Lamprecht
parent 6b393ac0ce
commit f03f16d643

View File

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