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

Commit 0f9aec83 authored by Andrew Boie's avatar Andrew Boie Committed by Doug Zongker
Browse files

releasetools: Fix image size checking



A block of code that should be evaluated for all
image types was instead only being run for yaffs
partitions.

Change-Id: I83ccbd7fa3c1bc02b9bba0832701ecc258e40a7d
Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 6bfa9113
Loading
Loading
Loading
Loading
+15 −12
Original line number Diff line number Diff line
@@ -390,7 +390,10 @@ def CheckSize(data, target, info_dict):
    if mount_point == "/userdata": mount_point = "/data"
    p = info_dict["fstab"][mount_point]
    fs_type = p.fs_type
    limit = info_dict.get(p.device + "_size", None)
    device = p.device
    if "/" in device:
      device = device[device.rfind("/")+1:]
    limit = info_dict.get(device + "_size", None)
  if not fs_type or not limit: return

  if fs_type == "yaffs2":