From 0c1fa8bae3a09f9efd1b30ebc3a5dacbbe58f193 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Fri, 26 Sep 2025 18:49:53 +0200 Subject: history: Handle transactions without any changes For some reason I have them in my log file. --- apt-private/private-history.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-private') diff --git a/apt-private/private-history.cc b/apt-private/private-history.cc index 834ff3411..5057ed0d6 100644 --- a/apt-private/private-history.cc +++ b/apt-private/private-history.cc @@ -103,7 +103,8 @@ static std::string GetKindString(const Entry &entry) kindGroup += ","; } // remove trailing "," - kindGroup.pop_back(); + if (not kindGroup.empty()) + kindGroup.pop_back(); return kindGroup; } -- cgit v1.2.3-70-g09d2