Merge "releasetools: Skip checking files with non-monotonic ranges."

am: 6d2ca1f19e

Change-Id: I45a8fc4561032554b6496a5fdb2854b88ebdfd2c
This commit is contained in:
Tao Bao 2018-05-17 21:36:45 -07:00 committed by android-build-merger
commit b1ae1cc94a

View file

@ -90,6 +90,12 @@ def ValidateFileConsistency(input_zip, input_tmp, info_dict):
logging.warning('Skipping %s that has incomplete block list', entry)
continue
# TODO(b/79951650): Handle files with non-monotonic ranges.
if not ranges.monotonic:
logging.warning(
'Skipping %s that has non-monotonic ranges: %s', entry, ranges)
continue
blocks_sha1 = image.RangeSha1(ranges)
# The filename under unpacked directory, such as SYSTEM/bin/sh.