From 9dcfed3a3f022abb106e49bcef4f73f08b495e08 Mon Sep 17 00:00:00 2001 From: Arian Date: Thu, 15 Jul 2021 18:15:55 +0200 Subject: [PATCH] sm6150-common: releasetools: Drop support for '*' in modem version * In case we don't need to assert, it's easier to just leave it empty. Change-Id: I3d58081315f69d065c4f5694102c3ff5fbf68a24 --- releasetools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/releasetools.py b/releasetools.py index 678e1b2..987387b 100644 --- a/releasetools.py +++ b/releasetools.py @@ -57,8 +57,7 @@ def AddBasebandAssertion(info, input_zip): m = re.search(r'require\s+version-baseband\s*=\s*(.+)', android_info) if m: modem_version, firmware_version = m.group(1).rstrip().split(',') - if ((len(modem_version) and '*' not in modem_version) and \ - (len(firmware_version) and '*' not in firmware_version)): + if (len(modem_version) and len(firmware_version)): cmd = 'assert(xiaomi.verify_baseband({0}) == "1" || abort("ERROR: This package requires firmware from MIUI {1} or newer. Please upgrade firmware and retry!"););' info.script.AppendExtra(cmd.format(modem_version, firmware_version)) return