Skip to content

Commit 10200f8

Browse files
committed
Check platform version
Signed-off-by: Ethan Lee <[email protected]>
1 parent 962dea9 commit 10200f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fosslight_android/android_binary_analysis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ def set_env_variables_from_result_log():
197197
# Check the platform version
198198
for line in android_log_lines:
199199
try:
200-
line = line.strip()
201-
pattern = re.compile(r'.*PLATFORM_VERSION\s*=\s*(\d+.?\d?)(.*\d*)\S*\s*')
200+
line = line.strip()
201+
pattern = re.compile(r'.*PLATFORM_VERSION\s*=\s*(\d+)\.?\d*\S*\s*')
202202
matched = pattern.match(line)
203203
if matched is not None:
204204
platform_version = matched.group(1)
205205
break
206206

207207
except Exception:
208-
pass
208+
pass
209209

210210
# FIND a NOTICE file and build out path
211211
for line in reversed(android_log_lines):

0 commit comments

Comments
 (0)