summaryrefslogtreecommitdiffstats
path: root/updater/commands.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-08-02 01:40:00 +0200
committerTianjie Xu <xunchang@google.com>2018-08-06 21:17:50 +0200
commit69ffa15338503376c2dad1e33d23ebb42fba60d1 (patch)
treeec8de3151e9a221a500ede59dc7fc2fb380e4d53 /updater/commands.cpp
parentMerge "minadbd: avoid overrriding services_to_fd." (diff)
downloadandroid_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.tar
android_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.tar.gz
android_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.tar.bz2
android_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.tar.lz
android_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.tar.xz
android_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.tar.zst
android_bootable_recovery-69ffa15338503376c2dad1e33d23ebb42fba60d1.zip
Diffstat (limited to '')
-rw-r--r--updater/commands.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/updater/commands.cpp b/updater/commands.cpp
index e88149678..15a787c51 100644
--- a/updater/commands.cpp
+++ b/updater/commands.cpp
@@ -40,6 +40,8 @@ Command::Type Command::ParseType(const std::string& type_str) {
return Type::ABORT;
} else if (type_str == "bsdiff") {
return Type::BSDIFF;
+ } else if (type_str == "compute_hash_tree") {
+ return Type::COMPUTE_HASH_TREE;
} else if (type_str == "erase") {
return Type::ERASE;
} else if (type_str == "free") {
@@ -175,6 +177,7 @@ Command Command::Parse(const std::string& line, size_t index, std::string* err)
SourceInfo source_info;
StashInfo stash_info;
+ // TODO(xunchang) add the parse code of compute_hash_tree
if (op == Type::ZERO || op == Type::NEW || op == Type::ERASE) {
// zero/new/erase <rangeset>
if (pos + 1 != tokens.size()) {