forked from Proxmox/proxmox
fix #4868: map missing section field to 'unknown'
needed for supporting some third-party repositories. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
5ea70421b3
commit
445e032eee
@ -13,7 +13,7 @@ pub struct PackagesFileRaw {
|
|||||||
pub package: String,
|
pub package: String,
|
||||||
pub source: Option<String>,
|
pub source: Option<String>,
|
||||||
pub version: String,
|
pub version: String,
|
||||||
pub section: String,
|
pub section: Option<String>,
|
||||||
pub priority: String,
|
pub priority: String,
|
||||||
pub architecture: String,
|
pub architecture: String,
|
||||||
pub essential: Option<String>,
|
pub essential: Option<String>,
|
||||||
@ -84,7 +84,7 @@ impl TryFrom<PackagesFileRaw> for PackageEntry {
|
|||||||
size: value.size.parse::<usize>()?,
|
size: value.size.parse::<usize>()?,
|
||||||
installed_size,
|
installed_size,
|
||||||
checksums: CheckSums::default(),
|
checksums: CheckSums::default(),
|
||||||
section: value.section,
|
section: value.section.unwrap_or("unknown".to_owned()),
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(md5) = value.md5_sum {
|
if let Some(md5) = value.md5_sum {
|
||||||
|
Loading…
Reference in New Issue
Block a user