(label, url)
| 161 | log('Downloading %s %.2f%%' % (url, 100 * count / float(total))) |
| 162 | |
| 163 | def download(label, url): |
| 164 | label = 'Downloading %s...' % label |
| 165 | path = http_cache.download(url, lambda count, total: progress_bar(label, count, total, url)) |
| 166 | if not path: |
| 167 | log('Failed to download %s' % url) |
| 168 | sys.exit(5) |
| 169 | return path |
| 170 | |
| 171 | def ziptree(path, outfile, directory = None): |
| 172 | # Directory is similar to -C in tar |
no test coverage detected