From: Ned Ludd Date: Wed, 1 Feb 2006 20:56:21 +0000 (-0000) Subject: - portage allows installing files into ${D}/${D}. Simon Stelling bug #120941 X-Git-Tag: v2.1_pre5_2760~116 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=410577400f21adfb1daad5bfbc73ea21dddb725e;p=portage.git - portage allows installing files into ${D}/${D}. Simon Stelling bug #120941 svn path=/main/trunk/; revision=2620 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index ff11a8b58..f05f50e59 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -1150,6 +1150,16 @@ dyn_install() { die "There are ${UNSAFE} unsafe files. Portage will not install them." fi + if [[ -d "${D}/${D}" ]] ; then + declare -i INSTALLTOD=0 + for i in $(find "${D}/${D}/"); do + echo "QA Notice: ${i##${D}/}installed to \${D}/\${D}" + ((INSTALLTOD++)) + done + die "Aborting due to QA concerns: ${INSTALLTOD} files installed to ${D}/${D}" + unset INSTALLTOD + fi + # dumps perms to stdout. if error, no perms dumped. function stat_perms() { local f