From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 934171381F3 for ; Tue, 30 Apr 2013 04:54:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DC68E0871; Tue, 30 Apr 2013 04:54:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC677E0871 for ; Tue, 30 Apr 2013 04:54:27 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9D4BA33BE2C for ; Tue, 30 Apr 2013 04:54:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 10A37E4563 for ; Tue, 30 Apr 2013 04:54:25 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1367297629.c9911e5eb70a194a35dfddceb816f720bf7ae579.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/misc-functions.sh X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: c9911e5eb70a194a35dfddceb816f720bf7ae579 X-VCS-Branch: master Date: Tue, 30 Apr 2013 04:54:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9829b92b-3c07-4834-8aa2-cc87a21d993e X-Archives-Hash: 39f92654dafddedc9b01c4f8959f826c commit: c9911e5eb70a194a35dfddceb816f720bf7ae579 Author: Zac Medico gentoo org> AuthorDate: Tue Apr 30 04:53:49 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Apr 30 04:53:49 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c9911e5e bin/misc-functions.sh: normalize ${D%/}${D} slash This will fix bug #467886. --- bin/misc-functions.sh | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index c83d21f..17dea4e 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -536,13 +536,13 @@ install_qa_check() { die "Unsafe files found in \${D}. Portage will not install them." fi - if [[ -d ${D}/${D} ]] ; then + if [[ -d ${D%/}${D} ]] ; then declare -i INSTALLTOD=0 - for i in $(find "${D}/${D}/"); do - eqawarn "QA Notice: /${i##${D}/${D}} installed in \${D}/\${D}" + for i in $(find "${D%/}${D}"); do + eqawarn "QA Notice: /${i##${D%/}${D}} installed in \${D}/\${D}" ((INSTALLTOD++)) done - die "Aborting due to QA concerns: ${INSTALLTOD} files installed in ${D}/${D}" + die "Aborting due to QA concerns: ${INSTALLTOD} files installed in ${D%/}${D}" unset INSTALLTOD fi