ostree/src
Cosimo Cecchi a5f266f25d repo: don't forget to abort the transaction when failed
ostree_repo_prepare_transaction() should always be matched with a call
to either ostree_repo_commit_transaction() or
ostree_repo_abort_transaction().

Since ostree_repo_pull_with_options() does not call
ostree_repo_abort_transaction() on errors, the OstreeRepo instance will
hit an assertion when it's re-used later for another attempt, such as
when the update is driven by an external component through libostree and
network temporarily goes down.

This commit simply always calls ostree_repo_abort_transaction() in the
exit path of ostree_repo_pull_with_options(), since the function is safe
to call even when we're not in a transaction, and that matches e.g. what
ostree-sysroot-cleanup.c does.
2015-07-28 11:35:42 -04:00
..
boot syntax-check: Remove empty lines at the end of file 2015-02-02 15:07:56 +01:00
libostree repo: don't forget to abort the transaction when failed 2015-07-28 11:35:42 -04:00
libotutil gpg: Add custom data buffers to wrapper GIO streams 2015-05-07 17:07:36 -04:00
ostree static-delta: add max-bsdiff-size option 2015-07-28 13:02:27 +02:00
switchroot ostree-prepare-root: log informational messages to stdout 2015-03-09 21:26:13 -04:00