summaryrefslogtreecommitdiff
path: root/update_status_utils.cc
diff options
context:
space:
mode:
authorJae Hoon Kim <kimjae@chromium.org>2019-07-11 11:20:38 -0700
committerJae Hoon Kim <kimjae@chromium.org>2019-07-16 21:48:29 +0000
commitc437ea562cab391ca2974b61c80534ec8f0bd28c (patch)
treee9ebfb45db2f12b31c1541b7dba31ff676d65b61 /update_status_utils.cc
parent2b73ac21602d96ebb25801f06c33be0f3ef33dc9 (diff)
update_engine: Block force update + install when not idle
Currently |CheckForUpdate()| and |CheckForInstall()| sets the values of |is_install_| to false and true respectively. The change of the value |is_install_| at the initial entry to these functions will cause the checks and actions taken within |ProcessingDone()| to behave as it's not intended to. This unwanted behavior occurs because |ProcessingDone()| depends on |UpdateAttempter|'s member variable |is_install_|. Until |ProcessingDone()| is called, the |is_install_| value needs to remain the same. BUG=chromium:982929 TEST=FEATURES="test" emerge-$BOARD update_engine Change-Id: Iddb55f1b46e66b9bc94b63e10e9f393f3cb89e1c
Diffstat (limited to 'update_status_utils.cc')
0 files changed, 0 insertions, 0 deletions