[27/29] discover/paths: Announce download completion
diff mbox

Message ID 20161219041915.30497-28-sam@mendozajonas.com
State Accepted
Headers show

Commit Message

Samuel Mendoza-Jonas Dec. 19, 2016, 4:19 a.m. UTC
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 discover/paths.c | 5 +++++
 1 file changed, 5 insertions(+)

Patch
diff mbox

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