From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-commits+bounces-391023-garchives=archives.gentoo.org@lists.gentoo.org>) id 1RD5co-0006bc-6z for garchives@archives.gentoo.org; Mon, 10 Oct 2011 02:29:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 291E921C09E; Mon, 10 Oct 2011 02:29:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E8CEC21C09E for <gentoo-commits@lists.gentoo.org>; Mon, 10 Oct 2011 02:29:36 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A55A1B401C for <gentoo-commits@lists.gentoo.org>; Mon, 10 Oct 2011 02:29:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9378980042 for <gentoo-commits@lists.gentoo.org>; Mon, 10 Oct 2011 02:29:35 +0000 (UTC) From: "Mike Frysinger" <vapier@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" <vapier@gentoo.org> Message-ID: <8ebca724748c0c2046e3120b0f5a813fc4298671.vapier@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ebuild-helpers/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ebuild-helpers/prepstrip X-VCS-Directories: bin/ebuild-helpers/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 8ebca724748c0c2046e3120b0f5a813fc4298671 Date: Mon, 10 Oct 2011 02:29:35 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e1323f6d797a1fe7f8e4b20bf16f4a21 commit: 8ebca724748c0c2046e3120b0f5a813fc4298671 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Sun Oct 9 18:43:11 2011 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Mon Oct 10 02:27:58 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D8ebca724 prepstrip: optimize chmod slightly Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> --- bin/ebuild-helpers/prepstrip | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip index d25259d..5f0fe18 100755 --- a/bin/ebuild-helpers/prepstrip +++ b/bin/ebuild-helpers/prepstrip @@ -73,9 +73,9 @@ save_elf_debug() { eval $inode=3D\$x ${OBJCOPY} --only-keep-debug "${x}" "${y}" ${OBJCOPY} --add-gnu-debuglink=3D"${y}" "${x}" - [[ -g ${x} ]] && chmod go-r "${y}" - [[ -u ${x} ]] && chmod go-r "${y}" - chmod a-x,o-w "${y}" + local args=3D"a-x,o-w" + [[ -g ${x} || -u ${x} ]] && args+=3D",go-r" + chmod ${args} "${y}" fi =20 if [[ -n ${buildid} ]] ; then