Skip to content

Commit

Permalink
history list: count also groups and envs in total Altered
Browse files Browse the repository at this point in the history
dnf4 also counts them.
  • Loading branch information
kontura authored and m-blaha committed May 13, 2024
1 parent 1e94648 commit 6f6cb94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libdnf5-cli/output/transactionlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ void print_transaction_list(std::vector<libdnf5::transaction::Transaction> & 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());
Expand Down

0 comments on commit 6f6cb94

Please sign in to comment.