summaryrefslogtreecommitdiffstats
path: root/updater/blockimg.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-07-03 22:41:22 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-07-03 22:41:22 +0200
commitdb33eeeacca82c68bd2df9321702d27b10c1fe1e (patch)
treee5a1e6a36c0ee4a51a6743e90269101b0db0b432 /updater/blockimg.cpp
parentMerge "updater: Check the number of args in Command::Parse." am: 95b8d2b064 (diff)
parentMerge "No longer print hash for stashed blocks during verification of retry" (diff)
downloadandroid_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.tar
android_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.tar.gz
android_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.tar.bz2
android_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.tar.lz
android_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.tar.xz
android_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.tar.zst
android_bootable_recovery-db33eeeacca82c68bd2df9321702d27b10c1fe1e.zip
Diffstat (limited to '')
-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;