mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
dload: unlink file on filesize exceeded error
On filesize exceeded error pacman leaves a .part file in cache dir, resulting in this error on next try: error: failed to commit transaction (wrong or NULL argument passed) Errors occurred, no packages were upgraded. Unlink the file on error to avoid this.
This commit is contained in:
parent
11dff8a50e
commit
d8f395fb56
@ -494,6 +494,7 @@ static int curl_download_internal(struct dload_payload *payload,
|
||||
/* handle the interrupt accordingly */
|
||||
if(dload_interrupted == ABORT_OVER_MAXFILESIZE) {
|
||||
payload->curlerr = CURLE_FILESIZE_EXCEEDED;
|
||||
payload->unlink_on_fail = 1;
|
||||
handle->pm_errno = ALPM_ERR_LIBCURL;
|
||||
_alpm_log(handle, ALPM_LOG_ERROR,
|
||||
_("failed retrieving file '%s' from %s : expected download size exceeded\n"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user