This will fix bug #467886.
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