Skip to content

Commit

Permalink
history store add user friendly message when operation succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura authored and pkratoch committed Jul 17, 2024
1 parent ebeed1b commit 1652f32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dnf5/commands/history/history_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ along with libdnf. If not, see <https://www.gnu.org/licenses/>.

#include "commands/history/transaction_id.hpp"

#include <fmt/format.h>
#include <libdnf5-cli/utils/userconfirm.hpp>
#include <libdnf5/utils/bgettext/bgettext-mark-domain.h>
#include <libdnf5/utils/fs/temp.hpp>
Expand Down Expand Up @@ -91,6 +92,7 @@ void HistoryStoreCommand::run() {

std::filesystem::rename(tmp_file.get_path(), trans_file_path);
tmp_file.release();
get_context().print_info(fmt::format("Transaction saved to {}.", output_option->get_value()));
}

} // namespace dnf5

0 comments on commit 1652f32

Please sign in to comment.