We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tar
1 parent bd6decb commit 6fa0356Copy full SHA for 6fa0356
.evergreen/scripts/setup_tests.py
@@ -117,9 +117,10 @@ def setup_libmongocrypt():
117
LOGGER.info(f"Fetching {url}...")
118
with request.urlopen(request.Request(url), timeout=15.0) as response: # noqa: S310
119
if response.status == 200:
120
- fileobj = io.BytesIO(response.read())
121
- with tarfile.open("libmongocrypt.tar.gz", fileobj=fileobj) as fid:
122
- fid.extractall(Path.cwd() / "libmongocrypt")
+ with Path("libmongocrypt.tar.gz").open("wb") as f:
+ f.write(response.read())
+ Path("libmongocrypt").mkdir()
123
+ run_command("tar -xzf libmongocrypt.tar.gz -C libmongocrypt")
124
LOGGER.info(f"Fetching {url}... done.")
125
126
run_command("ls -la libmongocrypt")
0 commit comments