xbps_fetch_file: don't error out if restart and tempfile doesn't exist.

This commit is contained in:
Juan RP 2012-11-19 16:40:27 +01:00
parent a311294f0a
commit d92c87dbf3

View File

@ -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;
/*