Merge "Only check for powerwash in A/B ota packages" am: 56bca1f2d5 am: 31d74fa4ea am: e089b78334

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2256203

Change-Id: I0ac2da4c4d7bd1c678a1e80e7b9e4ebee318ca65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/install/install.cpp b/install/install.cpp
index 83f3cad..044856b 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -551,7 +551,9 @@
   } else {
     LOG(FATAL) << "Invalid status code " << status;
   }
-  PerformPowerwashIfRequired(zip, device);
+  if (package_is_ab) {
+    PerformPowerwashIfRequired(zip, device);
+  }
 
   return INSTALL_SUCCESS;
 }