Merge "Fix applypatch_check failure when applying update on angler"

am: 7df1850d37

Change-Id: I5d5509d15df4ec42077b68bac7977b56cfab9097
This commit is contained in:
Tianjie Xu
2016-10-19 00:42:01 +00:00
committed by android-build-merger
+1 -1
View File
@@ -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);