[arch-projects] [PATCH] [devtools] makechrootpkg: load compression-related vars, mostly to allow multi-core compression

Bennett Piater bennett at piater.name
Thu May 11 12:51:56 UTC 2017


Compressing large packages on a single core takes much longer than necessary, so loading these vars would save a lot of time.

---
 makechrootpkg.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/makechrootpkg.in b/makechrootpkg.in
index 72b7eb7..69b2122 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -91,7 +91,7 @@ load_vars() {
 
        [[ -f $makepkg_conf ]] || return 1
 
-       for var in {SRC,SRCPKG,PKG,LOG}DEST MAKEFLAGS PACKAGER; do
+       for var in {SRC,SRCPKG,PKG,LOG}DEST MAKEFLAGS PACKAGER COMPRESS{{G,X,LR,}Z,BZ2,LZO}; do
                [[ -z ${!var:-} ]] && eval $(grep "^${var}=" "$makepkg_conf")
        done
 
-- 
2.12.2



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 553 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20170511/3ee66e6d/attachment.asc>


More information about the arch-projects mailing list