[pbs-devel] [PATCH proxmox] fix #5249: apt: allow parsing Packages without Priority field

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Apr 18 14:27:14 CEST 2024


ping

On March 14, 2024 11:26 am, Fabian Grünbichler wrote:
> 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
> 
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 




More information about the pbs-devel mailing list