Skip to content

Commit

Permalink
Fix s3_determine func
Browse files Browse the repository at this point in the history
  • Loading branch information
nazunalika committed May 8, 2024
1 parent 3e6d7d3 commit bad06d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iso/empanadas/empanadas/util/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,10 +642,12 @@ def s3_determine_latest(s3_bucket, release, arches, filetype, name,
for arch in arches:
temps = []
new_arch = arch
new_release = release
# This is lazy, but...
if root_prefix == 'buildiso':
new_arch = translators[arch]
start_of_path = f"{root_prefix}-{release.split('.')[0]}-{new_arch}"
new_release = release.split('.')[0]
start_of_path = f"{root_prefix}-{new_release}-{new_arch}"
for y in temp:
if arch in y and y.startswith(start_of_path):
temps.append(y)
Expand Down

0 comments on commit bad06d1

Please sign in to comment.