Skip to content

Commit

Permalink
Merge pull request #65 from Haidra-Org/ti-sha256-bug
Browse files Browse the repository at this point in the history
fix: TI now correctly compares to intended sha256 from hordeling
  • Loading branch information
tazlin authored Aug 26, 2023
2 parents 304c793 + 45ca52d commit 1b81621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hordelib/model_manager/ti.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ def _download_thread(self, thread_number):
)
else:
hordeling_json = hordeling_response.json()
if hordeling_json.get("sha256"):
ti["sha256"] = hordeling_json["sha256"]
if os.path.exists(filepath) and os.path.exists(hashpath):
if hordeling_json.get("sha256"):
ti["sha256"] = hordeling_json["sha256"]
# Check the hash
with open(hashpath) as infile:
try:
Expand Down

0 comments on commit 1b81621

Please sign in to comment.