summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-13 13:36:28 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-12-20 16:40:22 +1100
commit6a065198be213092c67071ee77eccf3e493a4cba (patch)
tree2ab8512fd2a3f47866b8cc9a7db3d22f6404ede2
parentdadebc9010718645789009a0fddbc6447b07f1da (diff)
downloadpetitboot-6a065198be213092c67071ee77eccf3e493a4cba.zip
petitboot-6a065198be213092c67071ee77eccf3e493a4cba.tar.gz
discover/paths: Announce download completion
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--discover/paths.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/paths.c b/discover/paths.c
index 0f102a2..e76dc35 100644
--- a/discover/paths.c
+++ b/discover/paths.c
@@ -14,6 +14,7 @@
#include <process/process.h>
#include <url/url.h>
#include <log/log.h>
+#include "i18n/i18n.h"
#include "paths.h"
#include "device-handler.h"
@@ -109,6 +110,10 @@ static void load_url_process_exit(struct process *process)
load_url_result_cleanup_local(result);
}
+ if (result->status == LOAD_OK && process->stdout_data)
+ device_handler_status_info(process->stdout_data,
+ _("Download complete: %s"), task->url->file);
+
/* The load callback may well free the ctx, which was the
* talloc parent of the task. Therefore, we want to do our cleanup
* before invoking it
OpenPOWER on IntegriCloud