install

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

commit 38c7e871a506b3e6613c3d11f09fb2fbc14c074e
parent e74286bfb36d87b9d35f4703cf9db4c1ab642363
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Fri,  6 Jan 2017 12:03:56 +0100

Fix(Wrong exec function) & Add(Useless binaries cleanUp)

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

diff --git a/screens/install/install.py b/screens/install/install.py @@ -864,10 +864,17 @@ class Install: self.dlg.infobox("Cleaning tools ...") self.exec(["rm", "-rf", "/tools"]) self.exec(["rm", "-rf", "/tmp/*"], shell=True) + self.exec(["rm", "-f", "/usr/lib/lib{bfd,opcodes}.a"], shell=True) + self.exec(["rm", "-f", "/usr/lib/lib{com_err,e2p,ext2fs,ss}.a"], shell=True) + self.exec(["rm", "-f", "/usr/lib/libbz2.a"]) + self.exec(["rm", "-f", "/usr/lib/libltdl.a"]) + self.exec(["rm", "-f", "/usr/lib/libfl.a"]) + self.exec(["rm", "-f", "/usr/lib/libfl_pic.a"]) + self.exec(["rm", "-f", "/usr/lib/libz.a"]) # This function strip installed binaries def strip_binaries(self): self.dlg.infobox("Stripping binaries ...") - self.e(["/tools/bin/find /usr/lib -type f -name \*.a -exec /tools/bin/strip --strip-debug {} ';'"], shell=True, ignore=True) - self.e(["/tools/bin/find /lib /usr/lib -type f -name \*.so* -exec /tools/bin/strip --strip-unneeded {} ';'"], shell=True, ignore=True) + self.exec(["/tools/bin/find /usr/lib -type f -name \*.a -exec /tools/bin/strip --strip-debug {} ';'"], shell=True, ignore=True) + self.exec(["/tools/bin/find /lib /usr/lib -type f -name \*.so* -exec /tools/bin/strip --strip-unneeded {} ';'"], shell=True, ignore=True) self.e(["/tools/bin/find /{bin,sbin} /usr/{bin,sbin,libexec} -type f -exec /tools/bin/strip --strip-all {} ';'"], shell=True, ignore=True)