summaryrefslogtreecommitdiff
path: root/libpackagelistparser/packagelistparser_test.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2020-02-18 15:04:28 -0800
committerYifan Hong <elsk@google.com>2020-03-03 13:19:49 -0800
commitad74121bda2a1b93b73222edcf4a6a3555249ee5 (patch)
treec0b88994c49c56581678e4faae710e2ab1b1ef21 /libpackagelistparser/packagelistparser_test.cpp
parent6d2a79839f99a4e8afc5983028e0b985a9169706 (diff)
libsnapshot: Add prolog to RemoveAllUpdateStates.
Add an optional prolog arg (function<bool()>) that is invoked before snapshots are deleted and update state set to none. This allows update_engine to delete markers before deleting snapshots to avoid depending on the erroneous markers. Otherwise, if update_engine delete markers after libsnapshot deletes update states, the device could technically get into a state where update_engine thinks the update has been applied, but snapshots are gone. Bug: 147696014 Test: libsnapshot_test Change-Id: I71bfc04a81ea4f94b3072558be50d2f80565113e
Diffstat (limited to 'libpackagelistparser/packagelistparser_test.cpp')
0 files changed, 0 insertions, 0 deletions