Skip to content

Commit

Permalink
Merge pull request #196 from SelfhostedPro/alpha4-hf2
Browse files Browse the repository at this point in the history
changed how updates are checked for items with multiple RepoDigests
  • Loading branch information
SelfhostedPro authored Oct 23, 2020
2 parents 972db9a + 99f5b34 commit a4a4de2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/api/actions/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,4 @@ def check_self_update():
status_code=exc.response.status_code, detail=exc.explanation
)

return check_updates(yacht.image.tags[0])
return _update_check(yacht.image.tags[0])
2 changes: 1 addition & 1 deletion backend/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def check_updates(tag):
new = dclient.images.get_registry_data(tag)
except APIError as err:
return False
if new.attrs["Descriptor"]["digest"] in current.attrs["RepoDigests"][0]:
if any(new.attrs["Descriptor"]["digest"] in i for i in current.attrs["RepoDigests"]):
return False
else:
return True
Expand Down

0 comments on commit a4a4de2

Please sign in to comment.