mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 16:28:50 -05:00
Forgot to cycle to next server on download error - fixed, as well as the
erro-case return value of _alpm_downloadfiles_forreal
This commit is contained in:
parent
a105718fd7
commit
2930109416
@ -185,7 +185,8 @@ int _alpm_downloadfiles_forreal(pmlist_t *servers, const char *localpath,
|
|||||||
if(localf != NULL) {
|
if(localf != NULL) {
|
||||||
fclose(localf);
|
fclose(localf);
|
||||||
}
|
}
|
||||||
return(-1);
|
/* try the next server */
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
_alpm_log(PM_LOG_DEBUG, _("server connection to %s complete"), server->s_url->host);
|
_alpm_log(PM_LOG_DEBUG, _("server connection to %s complete"), server->s_url->host);
|
||||||
}
|
}
|
||||||
@ -310,7 +311,7 @@ int _alpm_downloadfiles_forreal(pmlist_t *servers, const char *localpath,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(!done);
|
return(done ? 0 : -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *_alpm_fetch_pkgurl(char *target)
|
char *_alpm_fetch_pkgurl(char *target)
|
||||||
|
Loading…
Reference in New Issue
Block a user