Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 608d9d24 authored by Tao Bao's avatar Tao Bao Committed by Android Git Automerger
Browse files

am 1aa1af0e: sparse_img.py: Don\'t write empty map groups.

* commit '1aa1af0e':
  sparse_img.py: Don't write empty map groups.
parents e416a41f 1aa1af0e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -201,7 +201,11 @@ class SparseImage(object):
          nonzero_blocks.append(b)
          nonzero_blocks.append(b+1)

    assert zero_blocks or nonzero_blocks

    if zero_blocks:
      out["__ZERO"] = RangeSet(data=zero_blocks)
    if nonzero_blocks:
      out["__NONZERO"] = RangeSet(data=nonzero_blocks)

  def ResetFileMap(self):