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

Function wget

tools/daca2-download.py:21–33  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

19
20
21def wget(filepath):
22 filename = filepath
23 if '/' in filepath:
24 filename = filename[filename.rfind('/') + 1:]
25 for d in DEBIAN:
26 # TODO: handle exitcode?
27 subprocess.call(
28 ['nice', 'wget', '--tries=10', '--timeout=300', '-O', filename, d + filepath])
29 if os.path.isfile(filename):
30 return True
31 print('Sleep for 10 seconds..')
32 time.sleep(10)
33 return False
34
35
36def latestvername(names):

Callers 3

getpackagesFunction · 0.70
downloadpackageFunction · 0.70
showResultMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected