Skip to content

Commit

Permalink
offline: Update usage of toml11-devel
Browse files Browse the repository at this point in the history
Resolves #1693.
  • Loading branch information
evan-goode authored and ppisar committed Sep 13, 2024
1 parent cb76d52 commit b8fbbb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libdnf5/transaction/offline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ void OfflineTransactionState::read() {

void OfflineTransactionState::write() {
auto file = libdnf5::utils::fs::File(p_impl->path, "w");
#ifdef TOML11_COMPAT
file.write(toml::format(toml::value{{STATE_HEADER, p_impl->data.p_impl->data}}));
#else
file.write(toml::format(toml::value{toml::table{{STATE_HEADER, p_impl->data.p_impl->data}}}));
#endif
file.close();
}

Expand Down

0 comments on commit b8fbbb1

Please sign in to comment.