xbps_fetch_file: don't error out if restart and tempfile doesn't exist.
This commit is contained in:
parent
a311294f0a
commit
d92c87dbf3
@ -178,10 +178,6 @@ xbps_fetch_file(struct xbps_handle *xhp, const char *uri, const char *flags)
|
||||
/*
|
||||
* Remove current file (if exists).
|
||||
*/
|
||||
if (restart && remove(tempfile) == -1) {
|
||||
rv = -1;
|
||||
goto out;
|
||||
}
|
||||
restart = false;
|
||||
url->offset = 0;
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user