summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2007-11-15 20:19:49 +0100
committerDan McGee <dan@archlinux.org>2007-11-25 21:02:03 +0100
commit7af1f664411d337d865b2b3bd876163f2b0fbac4 (patch)
tree4e991c9a3613338bd2dd6ca8bc5ae14107c5a911
parent8d9ee923ec3860e3f1133a66a0dc94ce85644bb4 (diff)
downloadpacman-7af1f664411d337d865b2b3bd876163f2b0fbac4.tar.gz
pacman-7af1f664411d337d865b2b3bd876163f2b0fbac4.tar.xz
Make the download failure message more clear
Use the word "disk" in place of the host name for local files Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r--lib/libalpm/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libalpm/server.c b/lib/libalpm/server.c
index 9af16e05..8aa5a45b 100644
--- a/lib/libalpm/server.c
+++ b/lib/libalpm/server.c
@@ -238,8 +238,12 @@ int _alpm_downloadfiles_forreal(alpm_list_t *servers, const char *localpath,
dlf = downloadXGet(fileurl, &ust, (handle->nopassiveftp ? "" : "p"));
if(downloadLastErrCode != 0 || dlf == NULL) {
+ const char *host = _("disk");
+ if(strcmp(SCHEME_FILE, fileurl->scheme) != 0) {
+ host = fileurl->host;
+ }
_alpm_log(PM_LOG_ERROR, _("failed retrieving file '%s' from %s : %s\n"),
- fn, fileurl->host, downloadLastErrString);
+ fn, host, downloadLastErrString);
if(localf != NULL) {
fclose(localf);
}