diff options
author | davidovski <david@davidovski.xyz> | 2022-01-13 20:03:32 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-01-13 20:03:32 +0000 |
commit | 169c42b7c4d9311030f027528e4b13307e1c4688 (patch) | |
tree | cccc51dc2a7a8f709f7a5c604065c3d813c06612 /src/verbs/install.py | |
parent | 64ce365acfbe4f617f18e2b1de26930fe3010bcd (diff) |
fixed issue with divide by 0
Diffstat (limited to 'src/verbs/install.py')
-rw-r--r-- | src/verbs/install.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/verbs/install.py b/src/verbs/install.py index d5bb834..d801b79 100644 --- a/src/verbs/install.py +++ b/src/verbs/install.py @@ -373,11 +373,12 @@ def install_multiple(to_install, args, options, config, terminology=("install", if package_path == "": print(colors.RED + f"Failed to download {package}") - downloaded += size + else: + downloaded += size - pkg_files.append( - (package, package_path, sources[source], key, repo, info) - ) + pkg_files.append( + (package, package_path, sources[source], key, repo, info) + ) util.loading_bar(int(length/divisor), int(length/divisor), "Downloaded packages", unit=unit) print(colors.RESET) |