libxbps: xbps_repository_sync_index: return proper return value in error path.

This commit is contained in:
Juan RP 2011-08-18 10:43:30 +02:00
parent 3c61de45aa
commit 4b68af989e

View File

@ -177,7 +177,7 @@ xbps_repository_sync_pkg_index(const char *uri)
if (fetchLastErrCode)
rv = fetchLastErrCode;
else
rv = errno;
rv = sverrno;
if (xhp->xbps_transaction_err_cb) {
xhp->xtcd->state = XBPS_TRANS_STATE_REPOSYNC;