Merge "releasetools: Fix the bug in AssertSequenceGood."

am: 236e664efa

* commit '236e664efa04bd92ce28ba553afebf8e79ca17fa':
  releasetools: Fix the bug in AssertSequenceGood.
This commit is contained in:
Tao Bao 2016-03-07 22:35:40 +00:00 committed by android-build-merger
commit cc9c8ce966
1 changed files with 4 additions and 1 deletions

View File

@ -771,7 +771,10 @@ class BlockImageDiff(object):
x = x.subtract(sr)
for s, e in x:
for i in range(s, e):
# Source image could be larger. Don't check the blocks that are in the
# source image only. Since they are not in 'touched', and won't ever
# be touched.
for i in range(s, min(e, self.tgt.total_blocks)):
assert touched[i] == 0
# Check that the output blocks for this transfer haven't yet