Skip to content
Snippets Groups Projects
Commit 629dd6b2 authored by Yannick DAYER's avatar Yannick DAYER
Browse files

fix: only extract an archive if we just downloaded it.

Fixes #195.
parent 8bca6760
No related branches found
No related tags found
No related merge requests found
Pipeline #79207 failed
...@@ -599,7 +599,8 @@ def download_file( ...@@ -599,7 +599,8 @@ def download_file(
f"correspond to '{checksum}'." f"correspond to '{checksum}'."
) )
if extract: # Extract only if the file was re-downloaded
if extract and needs_download:
local_file = extract_archive(local_file) local_file = extract_archive(local_file)
return local_file return local_file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment