forked from openkylin/platform_build
Revert "sparse_img.py: Don't write empty map groups."
This reverts commit 7f9470cda3
.
Change-Id: I97e2859903fbc4f1e6f0824269ae88b23f63e032
This commit is contained in:
parent
7f9470cda3
commit
16401ad425
|
@ -204,12 +204,8 @@ class SparseImage(object):
|
||||||
nonzero_blocks.append(b)
|
nonzero_blocks.append(b)
|
||||||
nonzero_blocks.append(b+1)
|
nonzero_blocks.append(b+1)
|
||||||
|
|
||||||
assert zero_blocks or nonzero_blocks
|
out["__ZERO"] = RangeSet(data=zero_blocks)
|
||||||
|
out["__NONZERO"] = RangeSet(data=nonzero_blocks)
|
||||||
if zero_blocks:
|
|
||||||
out["__ZERO"] = rangelib.RangeSet(data=zero_blocks)
|
|
||||||
if nonzero_blocks:
|
|
||||||
out["__NONZERO"] = rangelib.RangeSet(data=nonzero_blocks)
|
|
||||||
|
|
||||||
def ResetFileMap(self):
|
def ResetFileMap(self):
|
||||||
"""Throw away the file map and treat the entire image as
|
"""Throw away the file map and treat the entire image as
|
||||||
|
|
Loading…
Reference in New Issue