diff mbox series

handler: push progress status from bootloader handler

Message ID 20191005201819.11702-1-sbabic@denx.de
State Accepted
Headers show
Series handler: push progress status from bootloader handler | expand

Commit Message

Stefano Babic Oct. 5, 2019, 8:18 p.m. UTC
The handler just parses bootloader variable. There is no update of
status and it sems that the handler stucks. Send a update progress to
signal that it has finished.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 handlers/boot_handler.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/handlers/boot_handler.c b/handlers/boot_handler.c
index 12a3d42..58a60e1 100644
--- a/handlers/boot_handler.c
+++ b/handlers/boot_handler.c
@@ -19,6 +19,7 @@ 
 #include "handler.h"
 #include "util.h"
 #include "bootloader.h"
+#include "progress.h"
 
 static void uboot_handler(void);
 static void boot_handler(void);
@@ -112,6 +113,12 @@  static int install_boot_environment(struct img_type *img,
 		}
 		free(pair);
 	}
+	/*
+	 * this handler does not use copyfile()
+	 * and must update itself the progress bar
+	 */
+	swupdate_progress_update(100);
+
 	fclose(fp);
 	free(buf);