summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-04-29 21:53:49 -0700
committerZac Medico <zmedico@gentoo.org>2013-04-29 21:53:49 -0700
commitc9911e5eb70a194a35dfddceb816f720bf7ae579 (patch)
treeaf1325d0a8a426b09795c4126244eb122e692d97
parentrepoman: report --ignore/include-arches commits (diff)
downloadportage-c9911e5eb70a194a35dfddceb816f720bf7ae579.tar.gz
portage-c9911e5eb70a194a35dfddceb816f720bf7ae579.tar.bz2
portage-c9911e5eb70a194a35dfddceb816f720bf7ae579.zip
bin/misc-functions.sh: normalize ${D%/}${D} slash
This will fix bug #467886.
-rwxr-xr-xbin/misc-functions.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index c83d21f68..17dea4e98 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