summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2022-01-13 13:47:06 +0100
committerJuergen Daubert <jue@jue.li>2022-01-13 13:47:06 +0100
commit55b485f2026ed7f9a78e43502438f4400efe789f (patch)
treeb8344e0b52208193f1982de2b4ea056faa2d249e
parentc2ebd044e0dc239b957eb1d5a51fad73fd2dbae8 (diff)
downloadpkgutils-55b485f2026ed7f9a78e43502438f4400efe789f.tar.gz
pkgutils-55b485f2026ed7f9a78e43502438f4400efe789f.tar.xz
pkgmk: use curl as the default download programpkgutils-5.40.8
-rw-r--r--pkgmk.conf2
-rw-r--r--pkgmk.conf.5.in2
-rw-r--r--pkgmk.in2
3 files changed, 3 insertions, 3 deletions
diff --git a/pkgmk.conf b/pkgmk.conf
index 781e8b96..e6a8abc8 100644
--- a/pkgmk.conf
+++ b/pkgmk.conf
@@ -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"
diff --git a/pkgmk.conf.5.in b/pkgmk.conf.5.in
index 193ecc63..3e054362 100644
--- a/pkgmk.conf.5.in
+++ b/pkgmk.conf.5.in
@@ -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
diff --git a/pkgmk.in b/pkgmk.in
index 6830ec5d..b5ede7c9 100644
--- a/pkgmk.in
+++ b/pkgmk.in
@@ -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

Generated by cgit