Convert partition size to int before CheckSize

Test: th
Change-Id: Ic312e40fdad99afd65b4fc259395b8952bb038c6
This commit is contained in:
Kelvin Zhang
2023-10-31 13:42:15 -07:00
parent 9f9ac4e8a0
commit 8c9166ae37

View File

@@ -2619,7 +2619,9 @@ def CheckSize(data, target, info_dict):
device = p.device
if "/" in device:
device = device[device.rfind("/")+1:]
limit = info_dict.get(device + "_size")
limit = info_dict.get(device + "_size", 0)
if isinstance(limit, str):
limit = int(limit, 0)
if not fs_type or not limit:
return