diff options
author | Jae Hoon Kim <kimjae@chromium.org> | 2019-07-02 11:17:24 -0700 |
---|---|---|
committer | Jae Hoon Kim <kimjae@chromium.org> | 2019-07-16 21:46:58 +0000 |
commit | 2b73ac21602d96ebb25801f06c33be0f3ef33dc9 (patch) | |
tree | d474c265d4c208efd2cde33b51fc1ee26d00e1fd /scripts/payload_info_unittest.py | |
parent | 75daa3822680b04882ce13d4803ee78f9c3f365f (diff) |
update_engine: Force Update + Install uniform logic pattern
The change here is to make the exit points within |CheckForUpdate()| and
|CheckForInstall()| uniform with simpler logic.
When a force update or install is called, it is heavily dependent on the
|forced_update_pending_callback_| and the existence of a scheduled
update in the message loop. The |forced_update_pending_callback_| is the
one that notifies a change hence calling upon |OnUpdateScheduled()| that
was waiting on the message loop.
The call to |ScheduleUpdates()| before forcing the callback is to
guarantee that the |forced_update_pending_callback_| will take effect.
Even if the |forced_update_pending_callback_| is not set, it is not a
failure. Simply, the periodic check will use the set forced variables
when it is scheduled.
BUG=none
TEST=FEATURES="test" emerge-${BOARD} update_engine
Change-Id: Ic97671a70880c8b05d513a8dea93fce3b982bbf6
Diffstat (limited to 'scripts/payload_info_unittest.py')
0 files changed, 0 insertions, 0 deletions