install

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

commit 32cdf04487882ca9fd57199a691777a0338b5b8e
parent 52b2ceae08c9ba6328c67eeb7040bcbcc0415582
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 17:04:47 +0100

Fix(Dialog options) & Fix(Dialog object)

Diffstat:
Mpkgs/dialog_p1/dialog_p1.py | 1+
Mscreens/install/install.py | 7+++++++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/pkgs/dialog_p1/dialog_p1.py b/pkgs/dialog_p1/dialog_p1.py @@ -51,6 +51,7 @@ class Dialog_P1: def configure(self): return self.e(["./configure", "--prefix=/tools", + "--with-ncursesw" ]) def make(self): diff --git a/screens/install/install.py b/screens/install/install.py @@ -53,6 +53,7 @@ class Install: in_install = 0 current_install = [] # Object used to save the installation progress def_install = mnt_point + "/.install" # Default path for the install progress file + org_pwd = "" ## # Functions @@ -70,6 +71,9 @@ class Install: # main function, called by Main instance def main(self, Main): + # Save the installer PWD + self.org_pwd = os.environ["PWD"] + # The current configuration is already loaded from a file, no # reason to re-save it. if "load_conf" not in self.conf_lst: @@ -115,6 +119,7 @@ class Install: # Link between the host and the install self.exec(["ln", "-sv", self.mnt_point + "/tools", "/"]) self.phase_1_install() + os.chdir(self.org_pwd) self.skeleton(self.mnt_point) self.copy_files(self.mnt_point) self.chroot() @@ -677,6 +682,8 @@ class Install: self.dlg.infobox("Chrooting...") os.chroot(self.mnt_point) os.environ["PATH"] = "/bin:/usr/bin:/usr/sbin:/tools/bin" + self.dlg = Dialog(dialog="dialog", autowidgetsize=True) + self.dlg.set_background_title(title + ", version " + version) # Function that create the basic distribution skeleton def skeleton(self, path = "/"):