mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-06 21:12:44 -04:00
utils: Fix chaining of progress
With the latest ostree that enables the chaining of progress the testsuite broke because we were not getting changed events. Looking into this the reason seems to be that when we run the ostree_async_progress_finish() on the chained progress it is marked as dead, which causes ostree_async_progress_copy_state() to not copy any data when called from handle_chained_progress(). The fix is to copy the content manually before calling the finish(). Also, the entire callback chaining system seems wildly overcomplicated, so I simplified it by relying on the existing change notification of OstreeAsyncProgress.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f