summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-24 09:16:35 +0200
committerTao Bao <tbao@google.com>2018-06-04 18:19:45 +0200
commitc0299edd464708c48d823e7fed0035e5daa557de (patch)
tree759347ba216f69391aa2d22a9d4693e29cfa8c59 /updater
parentMerge "updater_sample: validate state only once" (diff)
downloadandroid_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.tar
android_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.tar.gz
android_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.tar.bz2
android_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.tar.lz
android_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.tar.xz
android_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.tar.zst
android_bootable_recovery-c0299edd464708c48d823e7fed0035e5daa557de.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");