Gentoo Archives: gentoo-portage-dev

From: Michael Haubenwallner <haubi@g.o>
To: gentoo-portage-dev@l.g.o
Cc: Michael Haubenwallner <haubi@g.o>
Subject: [gentoo-portage-dev] [PATCH] unpack: avoid useless chmods to improve speed
Date: Tue, 07 Jul 2015 09:18:03
Message-Id: 1436260658-25879-1-git-send-email-haubi@gentoo.org
1 X-Gentoo-Bug: 554084
2 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=554084
3 ---
4 bin/phase-helpers.sh | 4 ++--
5 1 file changed, 2 insertions(+), 2 deletions(-)
6
7 diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
8 index efd2cfa..bf3ae1f 100644
9 --- a/bin/phase-helpers.sh
10 +++ b/bin/phase-helpers.sh
11 @@ -531,8 +531,8 @@ unpack() {
12 done
13 # Do not chmod '.' since it's probably ${WORKDIR} and PORTAGE_WORKDIR_MODE
14 # should be preserved.
15 - find . -mindepth 1 -maxdepth 1 ! -type l -print0 | \
16 - ${XARGS} -0 chmod -fR a+rX,u+w,g-w,o-w
17 + find . -mindepth 1 '!' -type l '!' -perm /a+rX,u+w,g-w,o-w -print0 | \
18 + ${XARGS} -0 chmod -f a+rX,u+w,g-w,o-w
19 }
20
21 econf() {
22 --
23 2.0.5

Replies

Subject Author
[gentoo-portage-dev] [PATCH] unpack: avoid useless chmods to improve speed Michael Haubenwallner <haubi@g.o>