(file, path)
| 136 | zf.extractall(path) |
| 137 | |
| 138 | def extract(file, path): |
| 139 | log('Extracting %s to %s' % (file, path)) |
| 140 | if fnmatch.fnmatch(file, "*.tar.gz-*"): |
| 141 | extract_tar(file, path) |
| 142 | elif fnmatch.fnmatch(file, "*.zip-*"): |
| 143 | extract_zip(file, path) |
| 144 | else: |
| 145 | assert False, "Don't know how to extract " + file |
| 146 | |
| 147 | def progress_bar(label, count, total, url, width=40): |
| 148 | is_tty = sys.stdout.isatty() |
no test coverage detected