Skip to content

Commit

Permalink
Merge "Skip calling verify_package_compatibility when resuming."
Browse files Browse the repository at this point in the history
am: 98beb64

Change-Id: I32bc699f4f009bee490ff509bd8503d81766bf30
  • Loading branch information
Tao Bao authored and android-build-merger committed Mar 18, 2019
2 parents cd73207 + 98beb64 commit c4148b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ static int really_install_package(const std::string& path, bool* wipe_cache, boo
return INSTALL_CORRUPT;
}

// Additionally verify the compatibility of the package.
if (!verify_package_compatibility(zip)) {
// Additionally verify the compatibility of the package if it's a fresh install.
if (retry_count == 0 && !verify_package_compatibility(zip)) {
log_buffer->push_back(android::base::StringPrintf("error: %d", kPackageCompatibilityFailure));
return INSTALL_CORRUPT;
}
Expand Down

0 comments on commit c4148b5

Please sign in to comment.