]> git.proxmox.com Git - proxmox-apt.git/commitdiff
packages file: add section field
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 18 Oct 2022 09:20:35 +0000 (11:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Oct 2022 05:51:35 +0000 (07:51 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/deb822/packages_file.rs

index a51f71ead10f2e372ff752c5d6cf9d9a5fad2147..90b21c63ddbab16d3e7d51c6e27031211841785e 100644 (file)
@@ -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 {