diff options
author | Tianjie Xu <xunchang@google.com> | 2016-10-19 02:29:23 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-10-19 02:29:23 +0200 |
commit | 7df1850d37a1eb67f1ecc8623ae2c2066ec3b678 (patch) | |
tree | ae1189bccbb65f2b54088b6307dac5fcae6bf2f3 /applypatch | |
parent | Merge "Fix bootloader_message." (diff) | |
parent | Fix applypatch_check failure when applying update on angler (diff) | |
download | android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.tar android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.tar.gz android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.tar.bz2 android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.tar.lz android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.tar.xz android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.tar.zst android_bootable_recovery-7df1850d37a1eb67f1ecc8623ae2c2066ec3b678.zip |
Diffstat (limited to '')
-rw-r--r-- | applypatch/applypatch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.cpp b/applypatch/applypatch.cpp index cf155607b..48e4c8386 100644 --- a/applypatch/applypatch.cpp +++ b/applypatch/applypatch.cpp @@ -430,7 +430,7 @@ int applypatch_check(const char* filename, const std::vector<std::string>& patch // partitions, where the filename encodes the sha1s; no need to // check them twice.) if (LoadFileContents(filename, &file) != 0 || - FindMatchingPatch(file.sha1, patch_sha1_str) < 0) { + (patch_sha1_str.size() > 0 && FindMatchingPatch(file.sha1, patch_sha1_str) < 0)) { printf("file \"%s\" doesn't have any of expected " "sha1 sums; checking cache\n", filename); |