summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2009-06-18 07:07:13 +0200
committerDoug Zongker <dougz@android.com>2009-06-18 07:07:13 +0200
commitd683785ec9d36a9f4c7de1983f69a1f049132365 (patch)
tree23ad6c933463bd0506ce492b7fba92dc7006ae48 /updater
parentam e3da02e7: add less_than_int, greater_than_int to edify (diff)
parentlet the "firmware" command take the file straight from the package (diff)
downloadandroid_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.tar
android_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.tar.gz
android_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.tar.bz2
android_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.tar.lz
android_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.tar.xz
android_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.tar.zst
android_bootable_recovery-d683785ec9d36a9f4c7de1983f69a1f049132365.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/updater.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/updater/updater.c b/updater/updater.c
index 5a2ed2ccf..31d93ae96 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -34,9 +34,10 @@ int main(int argc, char** argv) {
}
char* version = argv[1];
- if (version[0] != '1' || version[1] != '\0') {
- fprintf(stderr, "wrong updater binary API; expected 1, got %s\n",
- version);
+ if ((version[0] != '1' && version[0] != '2') || version[1] != '\0') {
+ // We support version "1" or "2".
+ fprintf(stderr, "wrong updater binary API; expected 1 or 2, got %s\n",
+ argv[1]);
return 2;
}