Merge pull request #270 from eduardosm/http-failures
This commit is contained in:
commit
558630c559
|
@ -15,7 +15,7 @@ download_source() {
|
|||
local dest_path="${distfiles}/${fname}"
|
||||
if ! [ -e "${dest_path}" ]; then
|
||||
echo "Downloading ${fname}"
|
||||
curl -L "${url}" --output "${dest_path}"
|
||||
curl --fail --location "${url}" --output "${dest_path}"
|
||||
fi
|
||||
echo "${checksum} ${dest_path}" | sha256sum -c
|
||||
}
|
||||
|
|
|
@ -208,7 +208,7 @@ interpret_source_line() {
|
|||
# Default to basename of url if not given
|
||||
fname="${fname:-$(basename "${url}")}"
|
||||
if ! [ -e "${fname}" ]; then
|
||||
curl -L "${url}" --output "${fname}"
|
||||
curl --fail --location "${url}" --output "${fname}"
|
||||
fi
|
||||
echo "${checksum} ${fname}" > "${fname}.sum"
|
||||
sha256sum -c "${fname}.sum"
|
||||
|
|
Loading…
Reference in New Issue