Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/server.c5
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)