Skip to content

Commit 92ba814

Browse files
codyohlfacebook-github-bot
authored andcommitted
getdeps: support GETDEPS_WGET_ARGS in wget version
Summary: X-link: facebook/proxygen#495 X-link: facebook/mvfst#337 X-link: facebook/fboss#194 X-link: facebookincubator/zstrong#748 I found it useful to be able to set `GETDEPS_WGET_ARGS` to change some of the flags to `wget` while it's in that fetch mode :) Differential Revision: D56263907
1 parent cfb2ed8 commit 92ba814

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/fbcode_builder/getdeps/fetcher.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -683,15 +683,18 @@ def progress_pycurl(self, total, amount, _uploadtotal, _uploadamount):
683683
start = time.time()
684684
try:
685685
if os.environ.get("GETDEPS_USE_WGET") is not None:
686-
subprocess.run(
686+
procargs = (
687687
[
688688
"wget",
689+
]
690+
+ os.environ.get("GETDEPS_WGET_ARGS", "").split()
691+
+ [
689692
"-O",
690693
file_name,
691694
url,
692695
]
693696
)
694-
697+
subprocess.run(procargs, capture_output=True)
695698
headers = None
696699

697700
elif os.environ.get("GETDEPS_USE_LIBCURL") is not None:

0 commit comments

Comments
 (0)