summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-04-06 20:28:43 -0500
committerDan McGee <dan@archlinux.org>2008-04-06 20:28:43 -0500
commit9c7ebe68724791f06cdde2febdf91f0472f18407 (patch)
treed0731fda4a5cd2e88763a3bf9ac7f855795d92ba /lib/libalpm/dload.c
parent4c872594da321aa406cfb306c32c94ce2929d59e (diff)
downloadpacman-9c7ebe68724791f06cdde2febdf91f0472f18407.tar.xz
Remove a bit more download.h pollution
Kill it where it isn't absolutely necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index 1b7b013f..ceaf2743 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -136,6 +136,7 @@ static int download_internal(const char *url, const char *localpath,
if(strcmp(SCHEME_FILE, fileurl->scheme) != 0) {
host = fileurl->host;
}
+ pm_errno = PM_ERR_LIBDOWNLOAD;
_alpm_log(PM_LOG_ERROR, _("failed retrieving file '%s' from %s : %s\n"),
filename, host, downloadLastErrString);
ret = -1;
@@ -183,6 +184,7 @@ static int download_internal(const char *url, const char *localpath,
char buffer[PM_DLBUF_LEN];
while((nread = fread(buffer, 1, PM_DLBUF_LEN, dlf)) > 0) {
if(ferror(dlf)) {
+ pm_errno = PM_ERR_LIBDOWNLOAD;
_alpm_log(PM_LOG_ERROR, _("error downloading '%s': %s\n"),
filename, downloadLastErrString);
ret = -1;