Skip to content

Commit

Permalink
updates.py: use a releases entry's subpath if present in automatic up…
Browse files Browse the repository at this point in the history
…dates

Signed-off-by: Ian Leonard <[email protected]>
  • Loading branch information
antonlacon committed Oct 2, 2022
1 parent a175377 commit b7d6b1b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/lib/modules/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,13 @@ def get_highest_value(list):
if bugfix_filename_version_bugfix > version_bugfix:

update_url = release_data[f'{oe.DISTRIBUTION}-{oe.VERSION_ID}']['url']
self.update_file = f'{update_url}{bugfix_filename}'
bugfix_filename_subpath = ''
try:
bugfix_filename_subpath = release_data[f'{oe.DISTRIBUTION}-{oe.VERSION_ID}']['project'][oe.ARCHITECTURE]['releases'][highest_device_release]['file']['subpath']
# TODO see if presence of subpath may be assumed after LE11 releases
except KeyError:
pass
self.update_file = f'{update_url}{bugfix_filename_subpath}/{bugfix_filename}'
log.log(f'Found update file: {self.update_file}', log.INFO)

# show update available notification
Expand Down

0 comments on commit b7d6b1b

Please sign in to comment.