summaryrefslogtreecommitdiffstats
path: root/updater/blockimg.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-07-03 22:22:40 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-07-03 22:22:40 +0200
commit0a84d7260b3bcd4e898dd592ce5759dab5f89a65 (patch)
tree6744f0b6674bc70a3722f798852c7a5ca6a569ea /updater/blockimg.cpp
parentMerge "updater: Check the number of args in Command::Parse." (diff)
parentNo longer print hash for stashed blocks during verification of retry (diff)
downloadandroid_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.tar
android_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.tar.gz
android_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.tar.bz2
android_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.tar.lz
android_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.tar.xz
android_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.tar.zst
android_bootable_recovery-0a84d7260b3bcd4e898dd592ce5759dab5f89a65.zip
Diffstat (limited to 'updater/blockimg.cpp')
-rw-r--r--updater/blockimg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index cdf24f8b1..937c5e14b 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -765,7 +765,9 @@ static int LoadStash(const CommandParameters& params, const std::string& id, boo
}
if (VerifyBlocks(id, *buffer, src.blocks(), true) != 0) {
LOG(ERROR) << "failed to verify loaded source blocks in stash map.";
- PrintHashForCorruptedStashedBlocks(id, *buffer, src);
+ if (!is_retry) {
+ PrintHashForCorruptedStashedBlocks(id, *buffer, src);
+ }
return -1;
}
return 0;