pull: Go back to using one main context
authorColin Walters <walters@verbum.org>
Tue, 1 Sep 2015 02:37:37 +0000 (22:37 -0400)
committerColin Walters <walters@verbum.org>
Tue, 1 Sep 2015 18:39:24 +0000 (14:39 -0400)
commit84fe2ffb2bcc788916beb563b77cd6fe2c836456
treeab8f896cdfa38d81d7067d5a409a1286271c8457
parentef563213549eca69277e2df14d8e0b1d92c7f907
pull: Go back to using one main context

xdg-app was hanging for me with v2015.8, but worked with v2015.7.
I narrowed things down to the GMainLoop/context commit, in which
we started pushing a temporary main context for synchronous
requests internally.

That's never really going to work with libsoup - there needs
to be a single main context which works on the socket.  Furthermore,
clients couldn't get progress messages that way.

For *other* internal uses where we added APIs that talk to the remote
repo, we cleanly push a temporary main context.

(Note that I kind of snuck in a change here around the GError handling
 in pulls that isn't strictly related but came up in testing)
src/libostree/ostree-fetcher.c
src/libostree/ostree-metalink.c
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.c