install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 4033913f7f1b4e75e78b300a2dda682e9233ccef
parent 29dac874016f7e5bca2712241bc947f2e2e97128
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Thu,  5 Jan 2017 10:57:02 +0100

Fix(Pkg downloading): Now supporting multiples archives by package

Diffstat:
Mscreens/install/install.py | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/screens/install/install.py b/screens/install/install.py @@ -439,11 +439,12 @@ class Install: # TODO: Handle exception from retrieving while dl_ok == 0: # Update the progress bar - self.dlg.gauge_update(int((to_dl * 100) / dl_len), - "Getting "+ conf["archive"]+ "... ("+ str(to_dl) +"/"+ - str(dl_len) +")", True) - urlretrieve(conf["urls"][i], self.arch_dir + conf["archive"]) - i += 1 + while i < len(conf["urls"]): + self.dlg.gauge_update(int((to_dl * 100) / dl_len), + "Getting "+ conf["archive"]+ "... ("+ str(to_dl) +"/"+ + str(dl_len) +")", True) + urlretrieve(conf["urls"][i], self.arch_dir + conf["archive"]) + i += 1 dl_ok = 1 to_dl += 1 # Stop the progress bar