]> git.proxmox.com Git - proxmox-backup.git/commitdiff
tools apt: include package name in filter data
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Nov 2020 07:55:08 +0000 (08:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Nov 2020 07:55:08 +0000 (08:55 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/tools/apt.rs

index 5800e0a248d33b176c76dd1c72e28b29e1f828c6..6ea2565cac87e423e2cf9e0bd4b3276a2033d2f3 100644 (file)
@@ -136,11 +136,13 @@ fn get_changelog_url(
 }
 
 pub struct FilterData<'a> {
-    // this is version info returned by APT
+    /// package name
+    pub package: &'a str,
+    /// this is version info returned by APT
     pub installed_version: Option<&'a str>,
     pub candidate_version: &'a str,
 
-    // this is the version info the filter is supposed to check
+    /// this is the version info the filter is supposed to check
     pub active_version: &'a str,
 }
 
@@ -270,6 +272,7 @@ where
         let mut long_desc = "".to_owned();
 
         let fd = FilterData {
+            package: package.as_str(),
             installed_version: current_version.as_deref(),
             candidate_version: &candidate_version,
             active_version: &version,