Always log update progress inside ua. 85/261285/1 accepted/tizen/unified/20210829.234841 submit/tizen/20210817.140154 submit/tizen/20210826.114923 submit/tizen/20210827.084901
authorErnest Borowski <e.borowski@samsung.com>
Wed, 14 Jul 2021 13:31:09 +0000 (13:31 +0000)
committerErnest Borowski <e.borowski@samsung.com>
Wed, 14 Jul 2021 13:33:38 +0000 (13:33 +0000)
Progress was not reported during headless upgrade.
This information is required for os-upgrade automatic tests.

Change-Id: Ic2ca02f1d1b92b90329abee516c7d15b6ffd7ca1
Signed-off-by: Ernest Borowski <e.borowski@samsung.com>
src/ua.c

index bf42608..d1412c9 100755 (executable)
--- a/src/ua.c
+++ b/src/ua.c
@@ -174,8 +174,7 @@ void fota_gui_progress(void * pbUserData, unsigned long uPercent)
        }
        percent = from + ((to - from) * percent / 100);
 
-       if (ua_op_mode == UA_OP_MODE_FG)
-               fota_gui_update_progress(percent);      /* update progress bar and text */
+       fota_gui_update_progress(percent);      /* update progress bar and text */
 
        LOGL(LOG_FUNCS|LOG_GUI, "-- uPercent=%lu, Print Percent(%d%%)\n", uPercent, percent);
 }