Skip to content

Commit

Permalink
Updated image versioning system
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Sep 16, 2024
1 parent ef6f40a commit 7f92f71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,19 @@ def index_release_to_elasticsearch(es : Elasticsearch, index_name, release_detai
elif 'images' == name_without_extension:
package_changed = True
package_id = name_without_extension + '_sdk'
images_version_previous = check_from_index(es, index_name, asset['name'])
if len(metadata_content) > 1:
package_changed = metadata_content[0]['images']['hash'] != metadata_content[1]['images']['hash']
doc = {
"name": 'images_sdk',
"version" : version,
"version" : increment_version(images_version_previous),
"display_name" : "mikroSDK Setup images",
"hidden" : True,
"vendor" : "MIKROE",
"type" : "images",
"download_link" : asset['url'],
"install_location" : "%APPLICATION_DATA_DIR%/resources/images",
"package_changed": package_changed
"package_changed": True
}
elif asset['name'].startswith('board') or \
asset['name'].startswith('mikromedia') or \
Expand Down

0 comments on commit 7f92f71

Please sign in to comment.