[ostree] pull: Don't crash if the URL is not found
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] pull: Don't crash if the URL is not found
- Date: Thu, 6 Feb 2014 08:49:32 +0000 (UTC)
commit d744436a50686fc63686c4dc3507cd19e47c5a99
Author: Colin Walters <walters verbum org>
Date: Thu Feb 6 03:46:14 2014 -0500
pull: Don't crash if the URL is not found
src/libostree/ostree-repo-pull.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c
index b98d132..ec90520 100644
--- a/src/libostree/ostree-repo-pull.c
+++ b/src/libostree/ostree-repo-pull.c
@@ -378,7 +378,7 @@ fetch_uri_contents_membuf_sync (OtPullData *pull_data,
run_mainloop_monitor_fetcher (pull_data);
if (!fetch_data.result_stream)
{
- if (g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
+ if (allow_noent && g_error_matches (*error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))
{
g_clear_error (error);
ret = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]