MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / download_package

Function download_package

tools/donate_cpu_lib.py:339–344  ·  view source on GitHub ↗
(work_path, package, bandwidth_limit)

Source from the content-addressed store, hash-verified

337
338
339def download_package(work_path, package, bandwidth_limit):
340 print('Download package ' + package)
341 destfile = os.path.join(work_path, 'temp.tgz')
342 if not __wget(package, destfile, bandwidth_limit):
343 return None
344 return destfile
345
346
347def unpack_package(work_path, tgz, cpp_only=False, c_only=False, skip_files=None):

Callers

nothing calls this directly

Calls 2

__wgetFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected