From c7e463005663deaccfdf75971e1b442263730814 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 1 Jun 2012 16:04:47 +0200 Subject: [PATCH] xbps_rpool_sync: ignore fetch errors, they will be reported by state_cb. --- lib/repository_pool.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/repository_pool.c b/lib/repository_pool.c index 365d7736..7c41630c 100644 --- a/lib/repository_pool.c +++ b/lib/repository_pool.c @@ -149,7 +149,6 @@ xbps_rpool_sync(const char *uri) const struct xbps_handle *xhp = xbps_handle_get(); const char *repouri; size_t i; - int rv = 0; if (xhp->cfg == NULL) return ENOTSUP; @@ -163,7 +162,6 @@ xbps_rpool_sync(const char *uri) * Fetch repository index. */ if (xbps_repository_sync_pkg_index(repouri, XBPS_PKGINDEX) == -1) { - rv = fetchLastErrCode != 0 ? fetchLastErrCode : errno; xbps_dbg_printf("[rpool] `%s' failed to fetch: %s\n", repouri, fetchLastErrCode == 0 ? strerror(errno) : xbps_fetch_error_string()); @@ -174,14 +172,13 @@ xbps_rpool_sync(const char *uri) */ if (xbps_repository_sync_pkg_index(repouri, XBPS_PKGINDEX_FILES) == -1) { - rv = fetchLastErrCode != 0 ? fetchLastErrCode : errno; xbps_dbg_printf("[rpool] `%s' failed to fetch: %s\n", repouri, fetchLastErrCode == 0 ? strerror(errno) : xbps_fetch_error_string()); continue; } } - return rv; + return 0; } int