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:
parent
a6ece1dcbe
commit
bb4a451049
1 changed files with 3 additions and 3 deletions
|
@ -174,8 +174,8 @@ def generate_releases_json(artifact_version, delta_info):
|
||||||
|
|
||||||
if compare_versions(artifact_version.version, current_version) < 0 or \
|
if compare_versions(artifact_version.version, current_version) < 0 or \
|
||||||
(artifact_version.channel != 'stable' and
|
(artifact_version.channel != 'stable' and
|
||||||
compare_versions(artifact_version.version, channel_current_versions[artifact_version.channel].get('version', '0.0.0')) <= 0 and
|
compare_versions(artifact_version.version, current_version) <= 0 and
|
||||||
int(artifact_version.channel_version) <= int(channel_current_versions[artifact_version.channel].get('channelVersion', 0))):
|
int(artifact_version.channel_version) < int(channel_current_versions[artifact_version.channel])):
|
||||||
|
|
||||||
print('Uploading older release, skipping release json generation...')
|
print('Uploading older release, skipping release json generation...')
|
||||||
return
|
return
|
||||||
|
@ -215,7 +215,7 @@ def generate_releases_json(artifact_version, delta_info):
|
||||||
current_releases[package.channel] = os_dict
|
current_releases[package.channel] = os_dict
|
||||||
|
|
||||||
if package.channel != 'stable':
|
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)):
|
if artifact_version.channel == 'stable' and max([artifact_version.version, current_version], key=cmp_to_key(compare_versions)):
|
||||||
releases['currentVersion'] = artifact_version.version
|
releases['currentVersion'] = artifact_version.version
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue