Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/sync.c')
-rw-r--r--lib/libalpm/sync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c
index 076935d1..68c33243 100644
--- a/lib/libalpm/sync.c
+++ b/lib/libalpm/sync.c
@@ -977,12 +977,15 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas)
event.type = ALPM_EVENT_RETRIEVE_START;
EVENT(handle, &event);
+ event.type = ALPM_EVENT_RETRIEVE_DONE;
for(i = files; i; i = i->next) {
if(download_single_file(handle, i->data, cachedir) == -1) {
errors++;
+ event.type = ALPM_EVENT_RETRIEVE_FAILED;
_alpm_log(handle, ALPM_LOG_WARNING, _("failed to retrieve some files\n"));
}
}
+ EVENT(handle, &event);
}
finish: