Skip to content

Commit

Permalink
Fix widget progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotrevisani committed Mar 1, 2020
1 parent 7b7b23a commit 86ae2c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grayskull/pypi/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def _download_sdist_pkg(sdist_url: str, dest: str):
total_size = int(response.headers["Content-length"])

with ProgressBar(
widgets=WIDGET_BAR_DOWNLOAD, max_value=total_size, prefix=f"{name} "
widgets=deepcopy(WIDGET_BAR_DOWNLOAD),
max_value=total_size,
prefix=f"{name} ",
) as bar, open(dest, "wb") as pkg_file:
progress_val = 0
chunk_size = 512
Expand Down

0 comments on commit 86ae2c2

Please sign in to comment.