From 38260cddf5a3425e5147329cde1e0ef1c3b0dd42 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 9 Nov 2020 08:55:08 +0100 Subject: [PATCH] tools apt: include package name in filter data Signed-off-by: Thomas Lamprecht --- src/tools/apt.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tools/apt.rs b/src/tools/apt.rs index 5800e0a2..6ea2565c 100644 --- a/src/tools/apt.rs +++ b/src/tools/apt.rs @@ -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,