Skip to content

Commit

Permalink
Merge "Skip calling verify_package_compatibility when resuming."
Browse files Browse the repository at this point in the history
  • Loading branch information
Treehugger Robot authored and Gerrit Code Review committed Mar 18, 2019
2 parents 698dc08 + 032403f commit 98beb64
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 98beb64

Please sign in to comment.