install

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

commit 8561c562d0dacfacd365743c8c3261324fa12d9f
parent b7134f7a90d1801a94c125502582360880a23d4f
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 19 Dec 2016 17:41:30 +0100

Fix(Linux headers) & Fix(Install): Now not untaring already present archive

Diffstat:
Mpkgs/linux_headers_p2/linux_headers_p2.py | 2++
Mscreens/install/install.py | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pkgs/linux_headers_p2/linux_headers_p2.py b/pkgs/linux_headers_p2/linux_headers_p2.py @@ -42,6 +42,7 @@ class Linux_Headers_P2: "tmp_install": False, "configure": False, "make": False, + "chdir": False, "urls": [ # Url to download the package. The first one must be morphux servers "https://install.morphux.org/packages/linux-4.7.2.tar.xz" ] @@ -49,6 +50,7 @@ class Linux_Headers_P2: return self.config def before(self): + os.chdir("linux-4.7.2") return self.e(["make", "mrproper"]) def install(self): diff --git a/screens/install/install.py b/screens/install/install.py @@ -578,6 +578,8 @@ class Install: os.chdir(self.arch_dir) # Un-taring the archive + if (os.path.isdir(conf["name"] + "-" + conf["version"])): + return 1 self.exec(["tar", "xf", conf["archive"]]) # Function that display the global progress bar for an install