diff options
author | Tianjie Xu <xunchang@google.com> | 2018-02-28 20:11:05 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-28 20:11:05 +0100 |
commit | bb928df6ebd70ac0680184927ea00b373c3e507f (patch) | |
tree | c7619169afcf21edf6430e53dab1e54045c4dd41 /updater | |
parent | Merge "Remove the assumption of target chunk size in imgdiff" am: cc3446a7f7 am: a306d7bc55 (diff) | |
parent | Merge "Fix the behavior of undefined commands in BlockImageVerify" am: ac4818d6af (diff) | |
download | android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.tar android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.tar.gz android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.tar.bz2 android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.tar.lz android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.tar.xz android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.tar.zst android_bootable_recovery-bb928df6ebd70ac0680184927ea00b373c3e507f.zip |
Diffstat (limited to 'updater')
-rw-r--r-- | updater/blockimg.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp index feb2aeb27..4f085b204 100644 --- a/updater/blockimg.cpp +++ b/updater/blockimg.cpp @@ -1727,9 +1727,11 @@ static Value* PerformBlockImageUpdate(const char* name, State* state, const Command* cmd = cmd_map[params.cmdname]; + // Skip the command if we explicitly set the corresponding function pointer to nullptr, e.g. + // "erase" during block_image_verify. if (cmd->f == nullptr) { - LOG(ERROR) << "failed to find the function for command [" << line << "]"; - goto pbiudone; + LOG(DEBUG) << "skip executing command [" << line << "]"; + continue; } // Skip all commands before the saved last command index when resuming an update. |