summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-06-05 01:31:37 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-06-05 01:31:37 +0200
commit98dc45f0f055003b8c590af7701c0ef69c079e73 (patch)
tree038c9d10eddde9b1e1d6361d3ad7562c7d4bd3f8 /updater
parentMerge "updater_sample: validate state only once" am: 02ee7bf29d (diff)
parentMerge "tests: Add ResumableUpdaterTest." (diff)
downloadandroid_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.tar
android_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.tar.gz
android_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.tar.bz2
android_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.tar.lz
android_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.tar.xz
android_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.tar.zst
android_bootable_recovery-98dc45f0f055003b8c590af7701c0ef69c079e73.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 4adb974cb..bdb64636b 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1498,6 +1498,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
const std::vector<std::unique_ptr<Expr>>& argv,
const CommandMap& command_map, bool dryrun) {
CommandParameters params = {};
+ stash_map.clear();
params.canwrite = !dryrun;
LOG(INFO) << "performing " << (dryrun ? "verification" : "update");