diff options
author | Tianjie Xu <xunchang@google.com> | 2016-06-04 01:07:58 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-04 01:07:58 +0200 |
commit | cf5c1bc87d92851739dbe81db398a5d09dd97871 (patch) | |
tree | 4791c34bde2602501d9d6d988c9b148587cb2afa /updater/updater.cpp | |
parent | resolve merge conflicts of fe8e356 to nyc-dev-plus-aosp am: ba33da2884 (diff) | |
parent | resolve merge conflicts of 57ad046 to nyc-mr1-dev-plus-aosp (diff) | |
download | android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.tar android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.tar.gz android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.tar.bz2 android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.tar.lz android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.tar.xz android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.tar.zst android_bootable_recovery-cf5c1bc87d92851739dbe81db398a5d09dd97871.zip |
Diffstat (limited to 'updater/updater.cpp')
-rw-r--r-- | updater/updater.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp index 0da7a4e82..9fa01a53c 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -53,7 +53,7 @@ int main(int argc, char** argv) { setbuf(stdout, NULL); setbuf(stderr, NULL); - if (argc != 4) { + if (argc != 4 && argc != 5) { printf("unexpected number of arguments (%d)\n", argc); return 1; } @@ -146,6 +146,14 @@ int main(int argc, char** argv) { state.script = &script[0]; state.errmsg = NULL; + if (argc == 5) { + if (strcmp(argv[4], "retry") == 0) { + state.is_retry = true; + } else { + printf("unexpected argument: %s", argv[4]); + } + } + char* result = Evaluate(&state, root); if (have_eio_error) { |