install

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

commit 96a1960cb4769b1db68bcb024df070c692a3f89b
parent a97cd6d5086a9ae9b1a935403bb79af0e94147f0
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Tue, 20 Dec 2016 11:09:02 +0100

Fix(Package loading and a condition)

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

diff --git a/screens/install/install.py b/screens/install/install.py @@ -114,7 +114,8 @@ class Install: self.pkg_download(self.pkgs) # If the installation require a 2-Phase install - if "BIN_INSTALL" not in self.conf_lst["config"]: + if "BIN_INSTALL" not in self.conf_lst["config"] or \ + ("BIN_INSTALL" in self.conf_lst["config"] and self.conf_lst["config"]["BIN_INSTALL"] == False): # Create the tools directory self.exec(["mkdir", "-v", self.mnt_point + "/tools"]) # Link between the host and the install @@ -159,7 +160,10 @@ class Install: # Calling the init function of each package config = klass.init(self.conf_lst, self.exec, self.mnt_point) # Saving the configuration of the object - self.pkgs[config["name"]] = [klass, config] + if config["tmp_install"]: + self.pkgs[config["name"]] = [klass, config] + else: + self.pkgs[config["name"] + "_phase_2"] = [klass, config] print("\tDone !") # Function that format disk and create new partitions