diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-31 07:00:21 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-31 07:00:21 +0000 |
commit | 2930109416767cf4048954377bcccb665625d1d3 (patch) | |
tree | 9ded0839eb6c83e0ca2e31149d94d3c3d2abb577 /lib/libalpm | |
parent | a105718fd7900b2487133213c7290dd3b0cdad1e (diff) |
Forgot to cycle to next server on download error - fixed, as well as the
erro-case return value of _alpm_downloadfiles_forreal
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c index a41b9282..e1c1c0cb 100644 --- a/lib/libalpm/server.c +++ b/lib/libalpm/server.c @@ -185,7 +185,8 @@ int _alpm_downloadfiles_forreal(pmlist_t *servers, const char *localpath, if(localf != NULL) { fclose(localf); } - return(-1); + /* try the next server */ + continue; } else { _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) |