Snap for 5386257 from c5f06d7dc821dc5d98a3742fe1249fcbe0f0c1b8 to qt-release

Change-Id: I2faa278cf4980ff882fc747cfdd6750c51b89a59
diff --git a/install.cpp b/install.cpp
index 05f9af7..dbc815d 100644
--- a/install.cpp
+++ b/install.cpp
@@ -606,8 +606,8 @@
     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;
   }