WIP avoid checking patch version of sfdiks, some version don't have it
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 3 Oct 2023 10:51:46 +0000 (12:51 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 3 Oct 2023 10:51:46 +0000 (12:51 +0200)
Change-Id: I6d65b5f5643db41c11e7dfaf59e91fa25c917838
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing.py

index 98e28789d17abd6632c156deff8a82d1f1ee2249..cd2d073e633c795b1f6ae8c90c434b33c15f32c6 100755 (executable)
@@ -362,7 +362,7 @@ def check_sfdisk():
                           stdout=subprocess.PIPE)
     version = proc.stdout.decode('utf-8').strip()
     logging.debug(f"Found {version}")
-    major, minor, patch = (int(x) for x in re.findall('[0-9]+', version))
+    major, minor = [int(x) for x in re.findall('[0-9]+', version)][0:2]
     support_delete = False
 
     if major < 2 or major == 2 and minor < 26: