diff --git a/README.md b/README.md index 549bd643..4984c266 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## bauh -Graphical user interface to manage your Linux applications (packages) (old **fpakman**). It currently supports Flatpak, Snap and AUR packaging types. When you launch **bauh** you will see +**bauh** ( ba-oo ) is a graphical user interface to manage your Linux applications ( packages ) ( old **fpakman** ). It currently supports Flatpak, Snap and AUR packaging types. When you launch **bauh** you will see a management panel where you can search, update, install, uninstall and launch applications. You can also downgrade some applications depending on the package technology. It has a **tray mode** (see **Settings** below) that attaches the application icon to the system tray providing a quick way to launch it. Also the icon will get red when updates are available. @@ -106,7 +106,7 @@ will be pre-downloaded faster ( it does **NOT** modify your **pacman** settings a) if **MAKEFLAGS** is not set in **/etc/makepkg.conf** and **~/.makepkg.conf** does not exist, then a copy of **/etc/makepkg.conf** will be generated at **~/.makepkg.conf** defining MAKEFLAGS to work with -the number of your machine processors multiplied by 1.5 rounded up. +the number of your machine processors (**-j${nproc}**). b) same as previous, but related to **COMPRESSXZ** definition. If '--threads=0' is not defined, the custom file will be generated. diff --git a/bauh/gems/arch/worker.py b/bauh/gems/arch/worker.py index 39607572..c0a583a6 100644 --- a/bauh/gems/arch/worker.py +++ b/bauh/gems/arch/worker.py @@ -99,11 +99,11 @@ class ArchCompilationOptimizer(Thread if bool(os.getenv('BAUH_DEBUG', 0)) else P if not not_commented: user_makepkg = RE_MAKE_FLAGS.sub('', global_makepkg) - optimizations.append('MAKEFLAGS="-j{}"'.format(ncpus)) + optimizations.append('MAKEFLAGS="-j$(nproc)"') else: self.logger.warning("It seems '{}' compilation flags are already customized".format(GLOBAL_MAKEPKG)) else: - optimizations.append('MAKEFLAGS="-j{}"'.format(ncpus)) + optimizations.append('MAKEFLAGS="-j$(nproc)"') compress_xz = RE_COMPRESS_XZ.findall(user_makepkg if user_makepkg else global_makepkg)