Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5490 closed defect (fixed)

Don't download HTML error pages in build-osx-libs.sh

Reported by: historic_bruno Owned by: historic_bruno
Priority: Should Have Milestone: Alpha 24
Component: Build & Packages Keywords:
Cc: Patch:

Description (last modified by historic_bruno)

Currently the function download_lib in build-osx-libs.sh uses curl to download the source tarballs. However, the files might move or the URL may be incorrectly configured. In these cases, the error pages are saved with the tarball filename as a successful download, and the script proceeds as if nothing happened.

This can be resolved by adding the -f flag to curl, so it fails immediately on e.g. 404 errors.

Also, the -O flag could replace -o, but we need to verify both these flags are available on the oldest macOS we support, currently 10.9.

Change History (3)

comment:1 by historic_bruno, 5 years ago

Description: modified (diff)

comment:2 by historic_bruno, 5 years ago

Resolution: fixed
Status: assignedclosed

In 22493:

Fixes silent download errors in build-osx-libs.sh. Fixes #5490.

comment:3 by historic_bruno, 5 years ago

Milestone: BacklogAlpha 24
Note: See TracTickets for help on using tickets.