diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-09-20 20:20:25 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-09-20 20:48:42 +0200 |
commit | 289d9a17dc9d9287e5dcb75f84b38ad0388e5fde (patch) | |
tree | 7a58413ffe79aff0d21c6200f359b2e1b9001800 /bin | |
parent | Move parallel xargs wrapping to isolated-functions.sh (diff) | |
download | portage-289d9a17dc9d9287e5dcb75f84b38ad0388e5fde.tar.gz portage-289d9a17dc9d9287e5dcb75f84b38ad0388e5fde.tar.bz2 portage-289d9a17dc9d9287e5dcb75f84b38ad0388e5fde.zip |
ecompress: Run compression in parallel
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Reviewed-by: Zac Medico <zmedico@gentoo.org>
Closes: https://github.com/gentoo/portage/pull/365
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ecompress | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ecompress b/bin/ecompress index 075f4225e..83d97ae6e 100755 --- a/bin/ecompress +++ b/bin/ecompress @@ -136,8 +136,8 @@ fix_symlinks() { } export PORTAGE_COMPRESS PORTAGE_COMPRESS_FLAGS -find "${ED}" -name '*.ecompress' -delete \ - -exec "${PORTAGE_BIN_PATH}"/ecompress-file {} + +find "${ED}" -name '*.ecompress' -delete -print0 | + ___parallel_xargs -0 "${PORTAGE_BIN_PATH}"/ecompress-file ret=${?} fix_symlinks |