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

Commit 6a0b4d0b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix sparse image detection" am: 135eb025 am: 5a776518 am: 679fe3fc

parents e7fb9a9b 679fe3fc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2121,9 +2121,7 @@ def GetUserImage(which, tmpdir, input_zip,
  if info_dict is None:
    info_dict = LoadInfoDict(input_zip)

  is_sparse = info_dict.get("extfs_sparse_flag")
  if info_dict.get(which + "_disable_sparse"):
    is_sparse = False
  is_sparse = IsSparseImage(os.path.join(tmpdir, "IMAGES", which + ".img"))

  # When target uses 'BOARD_EXT4_SHARE_DUP_BLOCKS := true', images may contain
  # shared blocks (i.e. some blocks will show up in multiple files' block