pkgmk: use curl as the default download program

This commit is contained in:
Juergen Daubert 2022-01-13 13:47:06 +01:00
parent c2ebd044e0
commit 55b485f202
3 changed files with 3 additions and 3 deletions

View File

@ -33,7 +33,7 @@ esac
# PKGMK_IGNORE_FOOTPRINT="no"
# PKGMK_IGNORE_NEW="no"
# PKGMK_NO_STRIP="no"
# PKGMK_DOWNLOAD_PROG="wget"
# PKGMK_DOWNLOAD_PROG="curl"
# PKGMK_WGET_OPTS=""
# PKGMK_CURL_OPTS=""
# PKGMK_COMPRESSION_MODE="gz"

View File

@ -52,7 +52,7 @@ Default: '\fBfoo\fP/work', where \fBfoo\fP is the directory of the Pkgfile.
\fBPKGMK_DOWNLOAD_PROG='STRING'\fP
Use specified program to download source archives. Valid strings are curl and wget.
.br
Default: 'wget'
Default: 'curl'
.br
.TP
\fBPKGMK_CURL_OPTS='STRING'\fP

View File

@ -108,7 +108,7 @@ check_file() {
download_file() {
info "Downloading '$1'."
PKGMK_DOWNLOAD_PROG=${PKGMK_DOWNLOAD_PROG:-wget}
PKGMK_DOWNLOAD_PROG=${PKGMK_DOWNLOAD_PROG:-curl}
if [ ! "`type -p ${PKGMK_DOWNLOAD_PROG}`" ]; then
error "Command '${PKGMK_DOWNLOAD_PROG}' not found."
exit $E_GENERAL