releasetools: Skip checking files with non-monotonic ranges.
Bug: 79951743
Test: Run validate_target_files.py on target_files.zip that has
non-monotonic ranges listed in IMAGES/system.map.
Change-Id: I28d3ca6972d361362589cd51e60731af9994a551
Merged-In: I28d3ca6972d361362589cd51e60731af9994a551
(cherry picked from commit d32936d657
)
This commit is contained in:
parent
5b870d1583
commit
dd24c971a3
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,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.
|
||||
|
|
Loading…
Reference in a new issue