[pve-devel] [PATCH proxmox-apt 1/2] packages file: add section field
Fabian Grünbichler
f.gruenbichler at proxmox.com
Tue Oct 18 11:20:35 CEST 2022
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
Notes:
technically a breaking change, but the only user (pom) doesn't care.
not bumping to an incompatible version would avoid the need to bump the dep in proxmox-perl-rs
src/deb822/packages_file.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/deb822/packages_file.rs b/src/deb822/packages_file.rs
index a51f71e..90b21c6 100644
--- a/src/deb822/packages_file.rs
+++ b/src/deb822/packages_file.rs
@@ -57,6 +57,7 @@ pub struct PackageEntry {
pub size: usize,
pub installed_size: Option<usize>,
pub checksums: CheckSums,
+ pub section: String,
}
#[derive(Debug, Default, PartialEq, Eq)]
@@ -83,6 +84,7 @@ impl TryFrom<PackagesFileRaw> for PackageEntry {
size: value.size.parse::<usize>()?,
installed_size,
checksums: CheckSums::default(),
+ section: value.section,
};
if let Some(md5) = value.md5_sum {
--
2.30.2
More information about the pve-devel
mailing list