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.
This commit is contained in:
Enno Boland 2014-09-11 11:39:54 +02:00
parent 30ea08e605
commit 4689b07b85

View File

@ -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); xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC, 0, repodata, NULL);
/* /*
* Download plist index file from repository. * 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 */ /* reposync error cb */
fetchstr = xbps_fetch_error_string(); fetchstr = xbps_fetch_error_string();
xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC_FAIL, xbps_set_cb_state(xhp, XBPS_STATE_REPOSYNC_FAIL,