diff --git a/data/upd01_get_list_of_updates.py b/data/upd01_get_list_of_updates.py index 57e61afed734..f1ca9690f105 100644 --- a/data/upd01_get_list_of_updates.py +++ b/data/upd01_get_list_of_updates.py @@ -98,9 +98,6 @@ def get_updates_from_microsoft_support_for_version(windows_major_version, url): assert windows_version not in all_updates # Specific title fixes. - if windows_version == '11-23H2': - updates_section = updates_section.replace('>Windows 11, version 23H2 ', '>Windows 11, version 23H2') - if windows_version in ['21H2', '21H1', '20H2']: updates_section = updates_section.replace('KB5012599(OS Builds', 'KB5012599 (OS Builds') @@ -118,7 +115,7 @@ def get_updates_from_microsoft_support_for_version(windows_major_version, url): updates_section = re.sub(r']*>Windows.*? update history', '', updates_section, flags=re.IGNORECASE) updates_section = re.sub(r']*>End of service statement', '', updates_section, flags=re.IGNORECASE) - updates_section = re.sub(r']*>Windows 11, version \w+', '', updates_section, flags=re.IGNORECASE) + updates_section = re.sub(r']*>Windows 11, version \w+\s*', '', updates_section, flags=re.IGNORECASE) p = r'((\w+) (\d+), (\d+) ?(?:—|-) ?KB(\d{7})(?: Update for Windows 10 Mobile)? \(OS Builds? .+?\).*?)' items = re.findall(p, updates_section) @@ -281,7 +278,10 @@ def main(): consolidate_overlapping_updates(updates_from_release_health) windows_version_updates_sanity_check(updates_from_release_health) - assert updates_from_microsoft_support.keys() == updates_from_release_health.keys() + assert updates_from_microsoft_support.keys() == updates_from_release_health.keys() | { + # Temporarily (?) missing in Release Health. + '11-24H2', + } result = updates_from_microsoft_support merge_updates(result, updates_from_release_health)