Merge "Convert partition size to int before CheckSize" into main am: be56ac9aad
Original change: https://android-review.googlesource.com/c/platform/build/+/2812782 Change-Id: I08fac94e42457ef5838b6f8a19c41d046086939a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user