Skip to content

Commit

Permalink
build: always download and extract tars
Browse files Browse the repository at this point in the history
This caused failures in our ci-cd. Always downloading & extracting the
tars makes sure we will redownload them & extract if the previous
download / extraction was faulty.
  • Loading branch information
guyush1 committed Jan 15, 2025
1 parent eef9ea9 commit 7d4a19c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/compilation/download_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ function download_package() {
local url="$1"
local output="$2"

if [[ -f "$output" ]]; then
>&2 echo "Skipping download: $output already exists"
return 0
fi

wget "$url" -O "$output"
if [[ $? -ne 0 ]]; then
>&2 echo "Error: failed to download $url"
Expand Down Expand Up @@ -98,11 +93,6 @@ function extract_package() {
return 1
fi

if [[ -d "$output_dir" ]]; then
>&2 echo "Skipping extraction: $output_dir already exists"
return 0
fi

pushd "$temp_dir" > /dev/null

unpack_tarball "$tarball_realpath"
Expand Down

0 comments on commit 7d4a19c

Please sign in to comment.