Bug #273282 - Make install_qa_check() eqawarn about installation into v2.2_rc79
authorZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 19:08:50 +0000 (12:08 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 10 Sep 2010 19:08:50 +0000 (12:08 -0700)
these deprecated directories:

    etc/app-defaults usr/man usr/info usr/X11R6 usr/doc usr/locale

bin/misc-functions.sh

index 38da2ad81f51dcd226a6092191f4b270b718743d..36be6a986d76660ff82e31c8551a2a5c4dccb509 100755 (executable)
@@ -144,7 +144,7 @@ prepcompress() {
 }
 
 install_qa_check() {
-       local f
+       local f x
 
        cd "${D}" || die "cd failed"
 
@@ -154,6 +154,17 @@ install_qa_check() {
        ecompressdir --dequeue
        ecompress --dequeue
 
+       f=
+       for x in etc/app-defaults usr/man usr/info usr/X11R6 usr/doc usr/locale ; do
+               [[ -d $D/$x ]] && f+="  $x\n"
+       done
+
+       if [[ -n $f ]] ; then
+               eqawarn "QA Notice: This ebuild installs into the following deprecated directories:"
+               eqawarn
+               eqawarn "$f"
+       fi
+
        # Now we look for all world writable files.
        local i
        for i in $(find "${D}/" -type f -perm -2); do