From 4689b07b85766a799f138bb3e11b1c48fc85aa27 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 11 Sep 2014 11:39:54 +0200 Subject: [PATCH] lib/repo_sync.c: use xbps_fetch_file_dest() instead of xbps_fetch_delta(). Until the generation of deltas does not work reliably just download the repo files instead of trying to get the delta. --- lib/repo_sync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/repo_sync.c b/lib/repo_sync.c index e334818e..0ae76261 100644 --- a/lib/repo_sync.c +++ b/lib/repo_sync.c @@ -131,8 +131,10 @@ xbps_repo_sync(struct xbps_handle *xhp, const char *uri) xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC, 0, repodata, NULL); /* * Download plist index file from repository. + * XXX: replace xbps_fetch_file_dest() by xbps_fetch_delta() once delta + * generation works reliable. */ - if ((rv = xbps_fetch_delta(xhp, repofile, repodata, repofile, NULL)) == -1) { + if ((rv = xbps_fetch_file_dest(xhp, repofile, repodata, repofile, NULL)) == -1) { /* reposync error cb */ fetchstr = xbps_fetch_error_string(); xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC_FAIL,