summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-09-26 18:49:53 +0200
committerJulian Andres Klode <jak@debian.org>2025-09-26 18:49:53 +0200
commit0c1fa8bae3a09f9efd1b30ebc3a5dacbbe58f193 (patch)
tree291bb4307ccc9b9d91407b143b53b362ffc23fb8 /apt-private
parentd7aac1d0ebfb847d3dc4d990a4d9c3d491f34aaa (diff)
history: Handle transactions without any changes
For some reason I have them in my log file.
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-history.cc3
1 files changed, 2 insertions, 1 deletions
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;
}