diff --git a/summary.py b/summary.py index 81251f6..efdf068 100644 --- a/summary.py +++ b/summary.py @@ -41,12 +41,12 @@ def analyze_logs(log_content): python_version = None issues_found = False - # Patterns to capture specific environment information - id_pattern = re.compile(r'^#\d+\.\d+ ID: (.+)') - version_id_pattern = re.compile(r'^#\d+\.\d+ VERSION_ID: (.+)') - version_codename_pattern = re.compile(r'^#\d+\.\d+ VERSION_CODENAME: (.+)') - full_version_pattern = re.compile(r'^#\d+\.\d+ FULL VERSION: (.+)') - python_version_pattern = re.compile(r'^#\d+\.\d+ LANGUAGE VERSION: (.+)') + # Corrected patterns to capture actual output content + id_pattern = re.compile(r'^ID: (.+)') + version_id_pattern = re.compile(r'^VERSION_ID: "(.+)"') + version_codename_pattern = re.compile(r'^VERSION_CODENAME: (.+)') + full_version_pattern = re.compile(r'^FULL VERSION: (.+)') + python_version_pattern = re.compile(r'^LANGUAGE VERSION: (.+)') # Patterns to capture possible errors error_patterns = [