diff options
author | Ben Fennema <fennema@google.com> | 2017-08-03 18:02:25 -0700 |
---|---|---|
committer | Ben Fennema <fennema@google.com> | 2017-08-04 19:41:14 +0000 |
commit | 35419d08ee99ad4545bf93997b7c66de17417cc1 (patch) | |
tree | 1f5f50f295bbf1b21ae1f28a9b882ebb9f566be1 | |
parent | a13dc50d5d5e22b6a92c5f461748308b89c2bf69 (diff) | |
download | contexthub-35419d08ee99ad4545bf93997b7c66de17417cc1.tar.gz |
nanoapp_cmd: fix final fallback erasure step
The final fallback erasure step when downloading nanoapps doesn't
re-query nanohub for the list of nanoapps loaded, so it will only
download the nanoapps that were missing from the previous query
(ommitting all the nanoapps that just got erased)
So if A, B, and C are downloaded and D fails to download, only
D gets downloaded after erasing the flash. A, B, and C won't
be download until the next reboot.
Bug: 63404254
Test: build
Change-Id: Iac57ee9c4cbef8db74fed460a0e2bdc7124a791c
Signed-off-by: Ben Fennema <fennema@google.com>
-rw-r--r-- | util/nanoapp_cmd/nanoapp_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nanoapp_cmd/nanoapp_cmd.c b/util/nanoapp_cmd/nanoapp_cmd.c index 328ba0cb..682a45f3 100644 --- a/util/nanoapp_cmd/nanoapp_cmd.c +++ b/util/nanoapp_cmd/nanoapp_cmd.c @@ -480,7 +480,7 @@ int main(int argc, char *argv[]) LOGE("Download failed after %d retries; erasing all apps " "before final attempt", i); eraseSharedArea(); - uninstallCnt = 0; + parseConfigAppInfo(&installCnt, &uninstallCnt); } removeApps(uninstallCnt); downloadApps(installCnt); |