Use ! -type l to exclude symlinks better. Thanks to marienz.
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Feb 2007 11:13:03 +0000 (11:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Feb 2007 11:13:03 +0000 (11:13 -0000)
svn path=/main/trunk/; revision=5878

bin/ebuild.sh

index 3afa031e24e587140c4f499e1a49fb4f6ac7d14b..e0be4c17d897bc33a92d278e48b538d46780f3c2 100755 (executable)
@@ -456,11 +456,7 @@ unpack() {
        done
        # Do not chmod '.' since it's probably ${WORKDIR} and PORTAGE_WORKDIR_MODE
        # should be preserved.
-       local myfile
-       find . -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' myfile; do
-               [ -L "${myfile}" ] && continue # find can't exclude symlinks by itself.
-               chmod -fR a+rX,u+w,g-w,o-w "${myfile}"
-       done
+       find . -mindepth 1 ! -type l -print0 | ${XARGS} chmod -f a+rX,u+w,g-w,o-w
 }
 
 strip_duplicate_slashes() {