Merge "Skip calling verify_package_compatibility when resuming."
This commit is contained in:
commit
98beb6414b
1 changed files with 2 additions and 2 deletions
|
@ -606,8 +606,8 @@ static int really_install_package(const std::string& path, bool* wipe_cache, boo
|
||||||
return INSTALL_CORRUPT;
|
return INSTALL_CORRUPT;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Additionally verify the compatibility of the package.
|
// Additionally verify the compatibility of the package if it's a fresh install.
|
||||||
if (!verify_package_compatibility(zip)) {
|
if (retry_count == 0 && !verify_package_compatibility(zip)) {
|
||||||
log_buffer->push_back(android::base::StringPrintf("error: %d", kPackageCompatibilityFailure));
|
log_buffer->push_back(android::base::StringPrintf("error: %d", kPackageCompatibilityFailure));
|
||||||
return INSTALL_CORRUPT;
|
return INSTALL_CORRUPT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue