From f708eafdf0b9f58df5d471405b461c5316617b36 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Fri, 22 May 2015 17:02:12 +0300 Subject: [PATCH] fix ZeroDivisionError --- slpkg/binary/install.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/slpkg/binary/install.py b/slpkg/binary/install.py index 34c93177..4623368c 100644 --- a/slpkg/binary/install.py +++ b/slpkg/binary/install.py @@ -63,8 +63,7 @@ class BinaryInstall(object): self.answer = '' Msg().reading() self.PACKAGES_TXT, self.mirror = RepoInit(self.repo).fetch() - num_lines = sum(1 for line in self.PACKAGES_TXT) - self.step = (num_lines / (100 * len(self.packages))) + self.step = 0 def start(self, if_upgrade): '''