- portage allows installing files into ${D}/${D}. Simon Stelling bug #120941
authorNed Ludd <solar@gentoo.org>
Wed, 1 Feb 2006 20:56:21 +0000 (20:56 -0000)
committerNed Ludd <solar@gentoo.org>
Wed, 1 Feb 2006 20:56:21 +0000 (20:56 -0000)
svn path=/main/trunk/; revision=2620

bin/ebuild.sh

index ff11a8b589dc3a9c38ba3fcf123f2428c2570cca..f05f50e591271de93adc964a5c8a6527c9040bbe 100755 (executable)
@@ -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