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

Commit 4fcb77e4 authored by Tao Bao's avatar Tao Bao
Browse files

blockimgdiff.py: Fix the script error for BBOTA v1.

CL in [1] added an assertion to make sure an empty RangeSet cannot call
RangeSet.to_raw_string(). However, we may unintentionally hit that when
generating BBOTA v1 script (e.g. for "new" commands that always have
empty src_ranges).

[1] commit e8f75613

Change-Id: I1723606967f354ace9286d2b888fdbc80ba10e39
parent c5a33b05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ class BlockImageDiff(object):
      free_string = []

      if self.version == 1:
        src_str = xf.src_ranges.to_string_raw()
        src_str = xf.src_ranges.to_string_raw() if xf.src_ranges else ""
      elif self.version >= 2:

        #   <# blocks> <src ranges>