install

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

commit 771abf3fcbd385f0484461db42c1c1c8b30e9e6c
parent 4a5dbcaeaae02ffbc87ea5ae31c334c9cf839d41
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 17:31:08 +0100

Fix(Package downloading): Now all the packages are downloaded at the same time.

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

diff --git a/screens/install/install.py b/screens/install/install.py @@ -93,8 +93,6 @@ class Install: # Load packages files self.load_pkgs() - #self.phase_1_install() - #sys.exit(1) # If a pre-existing install is present, clean it if os.path.isdir(self.mnt_point): @@ -113,6 +111,7 @@ class Install: # Mount the partitions self.mount() + self.pkg_download(self.pkgs) # If the installation require a 2-Phase install if "TMP_INSTALL" in self.conf_lst["config"] and self.conf_lst["config"]["TMP_INSTALL"]: # Create the tools directory @@ -305,9 +304,6 @@ class Install: total_sbus += pkg[1]["SBU"] pkg_phase_1[name] = pkg - # Download the archives - self.pkg_download(pkg_phase_1) - self.inst_title = "Phase 1: Temporary Install" self.total_sbus = total_sbus self.current_time = time.time() @@ -326,14 +322,11 @@ class Install: # Look for phase 2 package for name, pkg in self.pkgs.items(): - if pkgs[1]["tmp_install"] == False: + if pkg[1]["tmp_install"] == False: total_size += pkg[1]["size"] total_sbus += pkg[1]["SBU"] pkg_phase_2[name] = pkg - # Download the required archives - self.pkg_download(pkg_phase_2) - self.inst_title = "Phase 2: Installation" self.in_install = 1 self.install(pkg_phase_2, "linux-headers")