aboutsummaryrefslogtreecommitdiff
path: root/bpkg/common.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-05 12:33:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-05 12:33:59 +0200
commit180fdc20372d6501b8fcabb66e1d3cbda02b35c9 (patch)
tree07fca93b57017063a39719609e49ac3db2367c66 /bpkg/common.cli
parent70e69d52e789eeda4788c061fc404ba98cea09fa (diff)
Use curl instead of wget as default fetch program
We used to prefer wget 1.16 because it has --show-progress which results in nicer progress. But experience shows that wget is quite unreliable plus with bdep always using curl, it would be strange to use both curl and wget (and expecting the user to setup proxy, authentication, etc., for both). Also add internal --curl* options to be used by bdep.
Diffstat (limited to 'bpkg/common.cli')
-rw-r--r--bpkg/common.cli10
1 files changed, 8 insertions, 2 deletions
diff --git a/bpkg/common.cli b/bpkg/common.cli
index d62633a..ac045d0 100644
--- a/bpkg/common.cli
+++ b/bpkg/common.cli
@@ -167,8 +167,7 @@ namespace bpkg
If the fetch program is not specified, then \cb{bpkg} will try to
discover if one of the above programs is available and use that.
- Currently, \cb{bpkg} has the following preference order: \cb{wget}
- 1.16 or higher (supports \cb{--show-progress}), \cb{curl},
+ Currently, \cb{bpkg} has the following preference order: \cb{curl},
\cb{wget}, and \cb{fetch}."
}
@@ -180,6 +179,13 @@ namespace bpkg
specify multiple fetch options."
}
+ // Undocumented equivalents to bdep's --curl* options. We "merge" them
+ // into --fetch/--fetch-option in an ad hoc manner (see fetch.cxx for
+ // details).
+ //
+ path --curl;
+ strings --curl-option;
+
size_t --fetch-timeout
{
"<sec>",