Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-portage-dev] [PATCH v2 2/4] ecompress: Run compression in parallel
Date: Fri, 28 Sep 2018 19:51:32
Message-Id: 20180928195122.19730-2-mgorny@gentoo.org
In Reply to: [gentoo-portage-dev] [PATCH v2 1/4] Revert "ecompress-file: de-duplicate filtered_args (bug 667072)" by "Michał Górny"
1 Signed-off-by: Michał Górny <mgorny@g.o>
2 Reviewed-by: Zac Medico <zmedico@g.o>
3 Closes: https://github.com/gentoo/portage/pull/365
4 ---
5 bin/ecompress | 4 ++--
6 1 file changed, 2 insertions(+), 2 deletions(-)
7
8 diff --git a/bin/ecompress b/bin/ecompress
9 index 434456f0c..36bdb585b 100755
10 --- a/bin/ecompress
11 +++ b/bin/ecompress
12 @@ -139,8 +139,8 @@ fix_symlinks() {
13 }
14
15 export PORTAGE_COMPRESS PORTAGE_COMPRESS_FLAGS
16 -find "${ED}" -name '*.ecompress' -delete \
17 - -exec "${PORTAGE_BIN_PATH}"/ecompress-file {} +
18 +find "${ED}" -name '*.ecompress' -delete -print0 |
19 + ___parallel_xargs -0 "${PORTAGE_BIN_PATH}"/ecompress-file
20 ret=${?}
21
22 fix_symlinks
23 --
24 2.19.0