summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot-upgrader.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-04-29 08:54:39 -0400
committerColin Walters <walters@verbum.org>2014-04-29 10:59:57 -0400
commitf040c02048978945ab82d31ced7c7db565647413 (patch)
tree276cb6b32263b238b7f6ad5fc06499d7ff13788f /src/libostree/ostree-sysroot-upgrader.c
parent349083194d2064abf657494a15fc4bf456d80efd (diff)
downloadostree-f040c02048978945ab82d31ced7c7db565647413.tar.gz
libostree: Add _finish() API to async progress
Since OstreeAsyncProgress queues to the mainloop, we might "lose" the last message. Give callers a way to force a flush.
Diffstat (limited to 'src/libostree/ostree-sysroot-upgrader.c')
-rw-r--r--src/libostree/ostree-sysroot-upgrader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-sysroot-upgrader.c b/src/libostree/ostree-sysroot-upgrader.c
index b62f8d46..61b6309a 100644
--- a/src/libostree/ostree-sysroot-upgrader.c
+++ b/src/libostree/ostree-sysroot-upgrader.c
@@ -452,6 +452,9 @@ ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self,
flags, progress,
cancellable, error))
goto out;
+
+ if (progress)
+ ostree_async_progress_finish (progress);
}
if (!ostree_repo_resolve_rev (repo, origin_refspec, FALSE, &self->new_revision,