Skip to content

Commit b6725a0

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/fosslight_android/android_binary_analysis.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,14 @@ def set_env_variables_from_result_log():
206206

207207
except Exception:
208208
pass
209+
210+
# Check if the platform version is a decimal or no
211+
if platform_version:
212+
try:
213+
platform_version = int(float(platform_version))
214+
215+
except Exception:
216+
pass
209217

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

0 commit comments

Comments
 (0)