From 2f7bbb634a939588d4ce2caa04c36e30e8a890a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Fri, 26 Apr 2024 10:22:59 +0200 Subject: [PATCH] `history list`: count also groups and envs in total `Altered` dnf4 also counts them. --- libdnf5-cli/output/transactionlist.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libdnf5-cli/output/transactionlist.cpp b/libdnf5-cli/output/transactionlist.cpp index 79ef8c5ca..c3add2548 100644 --- a/libdnf5-cli/output/transactionlist.cpp +++ b/libdnf5-cli/output/transactionlist.cpp @@ -49,7 +49,11 @@ void print_transaction_list(std::vector & ts_ scols_line_set_data(ln, 2, libdnf5::utils::string::format_epoch(ts.get_dt_start()).c_str()); // TODO(lukash) fill the Actions(s), if we even want them? scols_line_set_data(ln, 3, ""); - scols_line_set_data(ln, 4, std::to_string(ts.get_packages().size()).c_str()); + scols_line_set_data( + ln, + 4, + std::to_string(ts.get_packages().size() + ts.get_comps_groups().size() + ts.get_comps_environments().size()) + .c_str()); } scols_print_table(table.get());