libxbps: xbps_repository_sync_index: return proper return value in error path.
This commit is contained in:
parent
3c61de45aa
commit
4b68af989e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user