]> git.ozlabs.org Git - petitboot/commitdiff
discover/paths: Announce download completion
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 13 Dec 2016 02:36:28 +0000 (13:36 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 20 Dec 2016 05:40:22 +0000 (16:40 +1100)
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/paths.c

index 0f102a222b76fac144fd35617366c0975eb3ff77..e76dc35ecb1038c15b9cd2c6580cc1e454f4c850 100644 (file)
@@ -14,6 +14,7 @@
 #include <process/process.h>
 #include <url/url.h>
 #include <log/log.h>
 #include <process/process.h>
 #include <url/url.h>
 #include <log/log.h>
+#include "i18n/i18n.h"
 
 #include "paths.h"
 #include "device-handler.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);
        }
 
                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
        /* 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