Skip to content

Commit 6b99a7c

Browse files
[buildinfo] Download package and signature at once
Signed-off-by: Juergen Hoetzel <juergen@archlinux.org>
1 parent 034a456 commit 6b99a7c

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)