1 |
commit: 289d9a17dc9d9287e5dcb75f84b38ad0388e5fde |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 20 18:20:25 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 20 18:48:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=289d9a17 |
7 |
|
8 |
ecompress: Run compression in parallel |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
Reviewed-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
Closes: https://github.com/gentoo/portage/pull/365 |
13 |
|
14 |
bin/ecompress | 4 ++-- |
15 |
1 file changed, 2 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/bin/ecompress b/bin/ecompress |
18 |
index 075f4225e..83d97ae6e 100755 |
19 |
--- a/bin/ecompress |
20 |
+++ b/bin/ecompress |
21 |
@@ -136,8 +136,8 @@ fix_symlinks() { |
22 |
} |
23 |
|
24 |
export PORTAGE_COMPRESS PORTAGE_COMPRESS_FLAGS |
25 |
-find "${ED}" -name '*.ecompress' -delete \ |
26 |
- -exec "${PORTAGE_BIN_PATH}"/ecompress-file {} + |
27 |
+find "${ED}" -name '*.ecompress' -delete -print0 | |
28 |
+ ___parallel_xargs -0 "${PORTAGE_BIN_PATH}"/ecompress-file |
29 |
ret=${?} |
30 |
|
31 |
fix_symlinks |