commit: d8a2b9718fd34ea70cdb3ae537daee34bc51083a
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Mon May 26 10:40:20 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri May 30 08:14:22 2025 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=d8a2b971
phase-helpers.sh: eliminate a useless use of xargs
The find(1) utility is used to execute chmod-lite by way of xargs(1).
Use the -exec primary instead.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
bin/phase-helpers.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 128c00a227..2af129fcc4 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -487,8 +487,7 @@ unpack() {
# Do not chmod '.' since it's probably ${WORKDIR} and
PORTAGE_WORKDIR_MODE
# should be preserved.
- find . -mindepth 1 -maxdepth 1 ! -type l -print0 | \
- ${XARGS} -0 "${PORTAGE_BIN_PATH}/chmod-lite"
+ find . -mindepth 1 -maxdepth 1 ! -type l -exec
"${PORTAGE_BIN_PATH}/chmod-lite" {} +
}
econf() {