Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tools.files.download:verify #14508

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conan/tools/files/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def download(conanfile, url, filename, verify=True, retry=None, retry_wait=None,
retry = config.get("tools.files.download:retry", check_type=int, default=retry)
retry_wait = retry_wait if retry_wait is not None else 5
retry_wait = config.get("tools.files.download:retry_wait", check_type=int, default=retry_wait)
verify = config.get("tools.files.download:verify", check_type=bool, default=verify)

filename = os.path.abspath(filename)
downloader = SourcesCachingDownloader(conanfile)
Expand Down
1 change: 1 addition & 0 deletions conans/model/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"tools.deployer:symlinks": "Set to False to disable deployers copying symlinks",
"tools.files.download:retry": "Number of retries in case of failure when downloading",
"tools.files.download:retry_wait": "Seconds to wait between download attempts",
"tools.files.download:verify": "Force enable/disable of verification checks for downloaded files",
"tools.gnu:make_program": "Indicate path to make program",
"tools.gnu:define_libcxx11_abi": "Force definition of GLIBCXX_USE_CXX11_ABI=1 for libstdc++11",
"tools.gnu:pkg_config": "Path to pkg-config executable used by PkgConfig build helper",
Expand Down