[ostree] pull: Exit cleanly with an error on failure to fetch refs
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull: Exit cleanly with an error on failure to fetch refs
- Date: Mon, 27 May 2013 13:33:57 +0000 (UTC)
commit 86e504ba1dfd7901417e615bdf8470661f7e05ef
Author: Colin Walters <walters verbum org>
Date: Mon May 27 09:29:33 2013 -0400
pull: Exit cleanly with an error on failure to fetch refs
src/ostree/ostree-pull.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ostree/ostree-pull.c b/src/ostree/ostree-pull.c
index bdf8035..057f09f 100644
--- a/src/ostree/ostree-pull.c
+++ b/src/ostree/ostree-pull.c
@@ -307,6 +307,8 @@ check_outstanding_requests_handle_error (OtPullData *pull_data,
g_debug ("pull: scan: %u fetching: %u staging: %u",
!pull_data->metadata_scan_idle, !current_fetch_idle, !current_stage_idle);
+ throw_async_error (pull_data, error);
+
/* This is true in the phase when we're fetching refs */
if (pull_data->metadata_objects_to_scan == NULL)
{
@@ -318,8 +320,6 @@ check_outstanding_requests_handle_error (OtPullData *pull_data,
{
g_main_loop_quit (pull_data->loop);
}
-
- throw_async_error (pull_data, error);
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]