Fix the error in sparse_img.py

Bug: 22046423
Change-Id: I0796e14df2b523570f0c485d146273f5e5aa5494
(cherry picked from commit 2b4ff174ff)
This commit is contained in:
Tao Bao 2015-06-23 17:30:35 -07:00
parent 83aca79b8d
commit 109555753f
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class SparseImage(object):
clobbered_blocks."""
ranges = self.care_map
if not include_clobbered_blocks:
ranges.subtract(self.clobbered_blocks)
ranges = ranges.subtract(self.clobbered_blocks)
h = sha1()
for d in self._GetRangeData(ranges):
h.update(d)