mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-08 18:02:05 +03:00
getdeps: support GETDEPS_WGET_ARGS in wget version, support skipping lfs/upload steps
Summary: X-link: https://github.com/facebookincubator/katran/pull/229 X-link: https://github.com/facebookexperimental/edencommon/pull/18 X-link: https://github.com/facebook/sapling/pull/878 X-link: https://github.com/facebook/openr/pull/154 X-link: https://github.com/facebook/folly/pull/2177 X-link: https://github.com/facebookincubator/zstrong/pull/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 :) I also need to skip the lfs upload part in my environment Reviewed By: mackorone Differential Revision: D56263907 fbshipit-source-id: ae45c31ebb10123e0358544d294fe2f2979dd59a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b84f146bfc
commit
220ffee5db
@@ -683,15 +683,18 @@ def download_url_to_file_with_progress(url: str, file_name) -> None:
|
||||
start = time.time()
|
||||
try:
|
||||
if os.environ.get("GETDEPS_USE_WGET") is not None:
|
||||
subprocess.run(
|
||||
procargs = (
|
||||
[
|
||||
"wget",
|
||||
]
|
||||
+ os.environ.get("GETDEPS_WGET_ARGS", "").split()
|
||||
+ [
|
||||
"-O",
|
||||
file_name,
|
||||
url,
|
||||
]
|
||||
)
|
||||
|
||||
subprocess.run(procargs, capture_output=True)
|
||||
headers = None
|
||||
|
||||
elif os.environ.get("GETDEPS_USE_LIBCURL") is not None:
|
||||
|
Reference in New Issue
Block a user