Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/fosslight_android/android_binary_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ def set_env_variables_from_result_log():
# Check the platform version
for line in android_log_lines:
try:
line = line.strip()
pattern = re.compile(r'.*PLATFORM_VERSION\s*=\s*(\d+.?\d?)(.*\d*)\S*\s*')
line = line.strip()
pattern = re.compile(r'.*PLATFORM_VERSION\s*=\s*(\d+)\.?\d*\S*\s*')
matched = pattern.match(line)
if matched is not None:
platform_version = matched.group(1)
break

except Exception:
pass
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

추후 불필요한 빈칸이 추가되지 않도록 해주시면 감사합니다.


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