(filepath)
| 19 | |
| 20 | |
| 21 | def 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 | |
| 36 | def latestvername(names): |
no outgoing calls
no test coverage detected