Skip to content

Commit 26c774f

Browse files
authored
Merge pull request #58 from juergenhoetzel/curl-speedup
[buildinfo] Download package and signature at once
2 parents 034a456 + 6b99a7c commit 26c774f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buildinfo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ function download_archive_package () {
104104
local target="$(get_archive_link "${1}" "$ext")"
105105
if verify_archive_link "${target}"; then
106106
echo "Downloading ${filename}" >&2
107-
curl -L "${target}" -o "${filename}" 2>/dev/null
108-
curl -L "${target}.sig" -o "${filename}.sig" 2>/dev/null
107+
curl -L --remote-name-all "${target}" "${target}.sig" 2>/dev/null
109108
if gpg --keyring /etc/pacman.d/gnupg/pubring.gpg --verify "${filename}.sig" "${filename}" 2>/dev/null; then
110109
mv "${filename}" "${cachedir}/"
111110
echo "${2}/${filename}"

0 commit comments

Comments
 (0)