From 105aacf52716f75277b162b3d464fa778cbbb551 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Fri, 10 May 2024 14:14:06 +0500 Subject: [PATCH] Fix partitions detection --- lon_deployer/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lon_deployer/utils.py b/lon_deployer/utils.py index a6207e4..583579e 100644 --- a/lon_deployer/utils.py +++ b/lon_deployer/utils.py @@ -86,7 +86,11 @@ def check_device(serial: str) -> bool: def check_parts(serial: str) -> bool: linux_response = fastboot_run(["getvar", "partition-type:linux"], serial=serial) esp_response = fastboot_run(["getvar", "partition-type:esp"], serial=serial) - return linux_response != "FAILED" and esp_response != "FAILED" + logger.debug({ + "esp": 'FAILED' not in esp_response, + "linux": 'FAILED' not in linux_response + }) + return not ("FAILED" in linux_response or "FAILED" in esp_response) def reboot_fb_device(serial: str) -> None: