fota: Modify condition of upgrade state transition
upgrade-manager service checks if upgrade is completed at the
initialization time and if upgrade is completed, then transition the
upgrade state from "ready" to "completed".
The transition condition is:
* upgrade status progress is 100
* boot mode is "normal"
But if upgrade is performed as 'online' mode, the boot mode(which is
parsed from the /proc/cmdline) is "fota".
To make upgrade state be transitioned to "completed", condition is
modified:
* upgrade status progress is 100
* (boot mode is "normal")
or
(boot mode is "fota" and upgrade type is "online")
Change-Id: I6d284f135df863c991bc8c08f75d6fa6e2b07ab5
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>