Switch supported minor version to 3.
Bug: 23182225
TEST=cros_workon_make update_engine --test
Change-Id: Ide798f89bd0e3f662d2deac96035780892bbfa08
diff --git a/payload_consumer/delta_performer.cc b/payload_consumer/delta_performer.cc
index 0949f3d..6261cb1 100644
--- a/payload_consumer/delta_performer.cc
+++ b/payload_consumer/delta_performer.cc
@@ -64,7 +64,7 @@
const uint64_t DeltaPerformer::kDeltaMetadataSignatureSizeSize = 4;
const uint64_t DeltaPerformer::kMaxPayloadHeaderSize = 24;
const uint64_t DeltaPerformer::kSupportedMajorPayloadVersion = 2;
-const uint32_t DeltaPerformer::kSupportedMinorPayloadVersion = 2;
+const uint32_t DeltaPerformer::kSupportedMinorPayloadVersion = 3;
const unsigned DeltaPerformer::kProgressLogMaxChunks = 10;
const unsigned DeltaPerformer::kProgressLogTimeoutSeconds = 30;
@@ -290,9 +290,9 @@
return false;
const PartitionUpdate& partition = partitions_[current_partition_];
- // Open source fds if we have a delta payload with minor version 2.
+ // Open source fds if we have a delta payload with minor version >= 2.
if (!install_plan_->is_full_update &&
- GetMinorVersion() == kSourceMinorPayloadVersion) {
+ GetMinorVersion() != kInPlaceMinorPayloadVersion) {
source_path_ = install_plan_->partitions[current_partition_].source_path;
int err;
source_fd_ = OpenFile(source_path_.c_str(), O_RDONLY, &err);