mirror of
https://github.com/mvt-project/mvt.git
synced 2026-08-14 23:20:22 +02:00
Properly handle iOS version updates with multiple builds
This commit is contained in:
@@ -35,13 +35,20 @@ def parse_latest_ios_versions(rss_feed_text):
|
|||||||
print("Could not parse iOS build:", title)
|
print("Could not parse iOS build:", title)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Handle iOS beta releases
|
||||||
release_info = build_match.groupdict()
|
release_info = build_match.groupdict()
|
||||||
if release_info["beta"]:
|
release_beta = release_info.pop("beta")
|
||||||
|
if release_beta:
|
||||||
print("Skipping beta release:", title)
|
print("Skipping beta release:", title)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
release_info.pop("beta")
|
# Some iOS releases have multiple build number for different hardware models.
|
||||||
latest_ios_versions.append(release_info)
|
# We will split these into separate entries and record each build number.
|
||||||
|
build_list = release_info.pop("build")
|
||||||
|
build_variants = build_list.split(" | ")
|
||||||
|
for build_number in build_variants:
|
||||||
|
release_info["build"] = build_number
|
||||||
|
latest_ios_versions.append(release_info)
|
||||||
|
|
||||||
return latest_ios_versions
|
return latest_ios_versions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user