From 986c2e115f282d3f9c4477a14a25da6f6bcc7720 Mon Sep 17 00:00:00 2001 From: John McQuah Date: Sun, 24 Jul 2022 20:45:37 -0400 Subject: [PATCH] pkgmeek: add default options to the curl download command --- scripts/pkgmeek | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pkgmeek b/scripts/pkgmeek index 18c9c77..4fa4793 100755 --- a/scripts/pkgmeek +++ b/scripts/pkgmeek @@ -390,8 +390,8 @@ fetch_url() { fi # haven't returned yet, so a different transport protocol must be in effect - [[ "$PKGMK_DOWNLOAD_PROG" =~ wget$ ]] && { OCONTINUE="-c"; OOUT="$PKGMK_WGET_OPTIONS -O"; } - [[ "$PKGMK_DOWNLOAD_PROG" =~ curl$ ]] && { OCONTINUE="-C -"; OOUT="$PKGMK_CURL_OPTIONS -o"; } + [[ "$PKGMK_DOWNLOAD_PROG" =~ wget$ ]] && { OCONTINUE="-c"; OOUT="--compression=none --passive-ftp --no-directories --tries=3 --waitretry=3 $PKGMK_WGET_OPTIONS -O"; } + [[ "$PKGMK_DOWNLOAD_PROG" =~ curl$ ]] && { OCONTINUE="-C -"; OOUT="-L --fail --ftp-pasv --retry 3 --retry-delay 3 $PKGMK_CURL_OPTIONS -o"; } [[ "$PKGMK_DOWNLOAD_PROG" =~ (wget|curl)$ ]] || SAVE_AS=/bin/false # start with the mirrors defined in pkgmk.conf, then go to the url found in the Pkgfile