mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-31 10:26:39 +01:00
fix ZeroDivisionError
This commit is contained in:
parent
d1a85b6666
commit
f708eafdf0
1 changed files with 1 additions and 2 deletions
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue