1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

Infra: Making manifest fix compatible with current format

This commit is contained in:
Michael Hollister 2025-05-02 17:49:06 -05:00
parent a6ece1dcbe
commit bb4a451049

View file

@ -174,8 +174,8 @@ def generate_releases_json(artifact_version, delta_info):
if compare_versions(artifact_version.version, current_version) < 0 or \
(artifact_version.channel != 'stable' and
compare_versions(artifact_version.version, channel_current_versions[artifact_version.channel].get('version', '0.0.0')) <= 0 and
int(artifact_version.channel_version) <= int(channel_current_versions[artifact_version.channel].get('channelVersion', 0))):
compare_versions(artifact_version.version, current_version) <= 0 and
int(artifact_version.channel_version) < int(channel_current_versions[artifact_version.channel])):
print('Uploading older release, skipping release json generation...')
return
@ -215,7 +215,7 @@ def generate_releases_json(artifact_version, delta_info):
current_releases[package.channel] = os_dict
if package.channel != 'stable':
channel_current_versions[package.channel] = { 'version': artifact_version.version, 'channelVersion': package.channel_version }
channel_current_versions[package.channel] = int(package.channel_version)
if artifact_version.channel == 'stable' and max([artifact_version.version, current_version], key=cmp_to_key(compare_versions)):
releases['currentVersion'] = artifact_version.version