aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--updater/blockimg.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index feb2aeb2..4f085b20 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1727,9 +1727,11 @@ static Value* PerformBlockImageUpdate(const char* name, State* state,
1727 1727
1728 const Command* cmd = cmd_map[params.cmdname]; 1728 const Command* cmd = cmd_map[params.cmdname];
1729 1729
1730 // Skip the command if we explicitly set the corresponding function pointer to nullptr, e.g.
1731 // "erase" during block_image_verify.
1730 if (cmd->f == nullptr) { 1732 if (cmd->f == nullptr) {
1731 LOG(ERROR) << "failed to find the function for command [" << line << "]"; 1733 LOG(DEBUG) << "skip executing command [" << line << "]";
1732 goto pbiudone; 1734 continue;
1733 } 1735 }
1734 1736
1735 // Skip all commands before the saved last command index when resuming an update. 1737 // Skip all commands before the saved last command index when resuming an update.