libalpm: correctly log curl_download_internal return value
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
ce528a2654
commit
bf76b5e89f
1 changed files with 3 additions and 2 deletions
|
@ -967,8 +967,9 @@ static int curl_download_internal(alpm_handle_t *handle,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_alpm_log(handle, ALPM_LOG_DEBUG, "curl_download_internal return code is %d\n", err);
|
int ret = err ? -1 : updated ? 0 : 1;
|
||||||
return err ? -1 : updated ? 0 : 1;
|
_alpm_log(handle, ALPM_LOG_DEBUG, "curl_download_internal return code is %d\n", ret);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue