From 410577400f21adfb1daad5bfbc73ea21dddb725e Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Wed, 1 Feb 2006 20:56:21 +0000 Subject: [PATCH] - portage allows installing files into ${D}/${D}. Simon Stelling bug #120941 svn path=/main/trunk/; revision=2620 --- bin/ebuild.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.26.2