Skip to content

Commit

Permalink
Fixed download_rpios
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcombs committed Jan 1, 2024
1 parent fbad814 commit 4fa79da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download-image.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_latest_image_url(url):
print(f'Latest Raspberry Pi OS image: {image_name}')
return xz_url

def download_rpios(arch, board, dist_repo_url, output_dir, cache_dir):
def download_rpios(arch, board, dist_repo_url, output_dir, cache_dir, uid, gid):
"""
Download the Raspberry Pi OS image for the specified architecture and board.
Expand Down Expand Up @@ -126,7 +126,7 @@ def download_rpios(arch, board, dist_repo_url, output_dir, cache_dir):
os.remove(xz_file)
os.rename(tmp_file, img_file)

build_rpios_tgz(filename, img_file, cache_dir, output_dir) # Call build_rpios_tgz function with the filename
build_rpios_tgz(filename, img_file, cache_dir, output_dir, uid, gid) # Call build_rpios_tgz function with the filename
print(f'Image built: {filename}')

except Exception as e:
Expand Down

0 comments on commit 4fa79da

Please sign in to comment.