summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-03-19 00:27:01 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-03-19 00:27:01 +0100
commitdb9dabb826478c7fceb13c0fc69cd4cb12dca5ab (patch)
treec3fbee69bffd6415d8226a6904d3d3a94267f8ce /install.cpp
parentMerge "Implement FilePackage class" am: 698dc08561 (diff)
parentMerge "Skip calling verify_package_compatibility when resuming." (diff)
downloadandroid_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.tar
android_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.tar.gz
android_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.tar.bz2
android_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.tar.lz
android_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.tar.xz
android_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.tar.zst
android_bootable_recovery-db9dabb826478c7fceb13c0fc69cd4cb12dca5ab.zip
Diffstat (limited to 'install.cpp')
-rw-r--r--install.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/install.cpp b/install.cpp
index 05f9af7a4..dbc815d47 100644
--- a/install.cpp
+++ b/install.cpp
@@ -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;
}