From 179b27be1e4cf4e68ccb9df64c64156dbb7b3820 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Aug 2024 15:28:44 +0200 Subject: Adding upstream version 2.9.7. Signed-off-by: Daniel Baumann --- apt-private/private-output.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'apt-private/private-output.cc') diff --git a/apt-private/private-output.cc b/apt-private/private-output.cc index 2e81095..4a946f2 100644 --- a/apt-private/private-output.cc +++ b/apt-private/private-output.cc @@ -596,7 +596,7 @@ void ShowDel(ostream &out,CacheFile &Cache) str.append("*"); return str; }, - CandidateVersion(&Cache), + CurrentVersion(&Cache), "action::remove"); } /*}}}*/ @@ -888,6 +888,14 @@ std::string PrettyFullName(pkgCache::PkgIterator const &Pkg) { return Pkg.FullName(true); } +std::string CurrentVersion(pkgCacheFile * const Cache, pkgCache::PkgIterator const &Pkg) +{ + return (*Cache)[Pkg].CurVersion; +} +std::function CurrentVersion(pkgCacheFile * const Cache) +{ + return std::bind(static_cast(&CurrentVersion), Cache, std::placeholders::_1); +} std::string CandidateVersion(pkgCacheFile * const Cache, pkgCache::PkgIterator const &Pkg) { return (*Cache)[Pkg].CandVersion; -- cgit v1.2.3