resolve merge conflicts of 4058a71
to stage-aosp-master
Change-Id: I0816bfc5d8adb20e175617d97651f1474ce4e916
This commit is contained in:
@@ -866,15 +866,17 @@ def WriteBlockIncrementalOTAPackage(target_zip, source_zip, output_zip):
|
|||||||
int(i) for i in
|
int(i) for i in
|
||||||
OPTIONS.info_dict.get("blockimgdiff_versions", "1").split(","))
|
OPTIONS.info_dict.get("blockimgdiff_versions", "1").split(","))
|
||||||
|
|
||||||
# Check first block of system partition for remount R/W only if
|
# Check the first block of the source system partition for remount R/W only
|
||||||
# disk type is ext4
|
# if the filesystem is ext4.
|
||||||
system_partition = OPTIONS.source_info_dict["fstab"]["/system"]
|
system_src_partition = OPTIONS.source_info_dict["fstab"]["/system"]
|
||||||
check_first_block = system_partition.fs_type == "ext4"
|
check_first_block = system_src_partition.fs_type == "ext4"
|
||||||
# Disable using imgdiff for squashfs. 'imgdiff -z' expects input files to be
|
# Disable using imgdiff for squashfs. 'imgdiff -z' expects input files to be
|
||||||
# in zip formats. However with squashfs, a) all files are compressed in LZ4;
|
# in zip formats. However with squashfs, a) all files are compressed in LZ4;
|
||||||
# b) the blocks listed in block map may not contain all the bytes for a given
|
# b) the blocks listed in block map may not contain all the bytes for a given
|
||||||
# file (because they're rounded to be 4K-aligned).
|
# file (because they're rounded to be 4K-aligned).
|
||||||
disable_imgdiff = system_partition.fs_type == "squashfs"
|
system_tgt_partition = OPTIONS.target_info_dict["fstab"]["/system"]
|
||||||
|
disable_imgdiff = (system_src_partition.fs_type == "squashfs" or
|
||||||
|
system_tgt_partition.fs_type == "squashfs")
|
||||||
system_diff = common.BlockDifference("system", system_tgt, system_src,
|
system_diff = common.BlockDifference("system", system_tgt, system_src,
|
||||||
check_first_block,
|
check_first_block,
|
||||||
version=blockimgdiff_version,
|
version=blockimgdiff_version,
|
||||||
|
Reference in New Issue
Block a user