Fixes from Arfrever:
authorZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 12:02:36 +0000 (12:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 12:02:36 +0000 (12:02 -0000)
* Highlight the "Files built without respecting LDFLAGS" QA Notice with red.
* Remove scanelf-ignored-LDFLAGS.log when empty.

svn path=/main/trunk/; revision=11216

bin/ebuild.sh
bin/misc-functions.sh

index 4e35f7c4db59156cccb1b3f7902fea60ba390e3d..7692c4e02d0d1fa63f16419ecd9b217b711b28dc 100755 (executable)
@@ -1176,7 +1176,7 @@ inherit() {
                        # false alarms due to INHERITED in /var/db/pkg being outdated
                        # in comparison the the eclasses from the portage tree.
                        if ! hasq $ECLASS $INHERITED; then
-                               eqawarn "QA Notice: ECLASS '$ECLASS' inherited illegally in $CATEGORY/$PF"
+                               eqawarn "QA Notice: ECLASS '$ECLASS' inherited illegally in $CATEGORY/$PF $EBUILD_PHASE"
                        fi
                fi
 
index 5854de9b6c5cb1d867812fd3d37ad5ecb6c1bbbc..97f55002decf2ea3c2b11bbc6b6d7e8f153a39f8 100755 (executable)
@@ -183,12 +183,14 @@ install_qa_check() {
                                f=$(<"${T}"/scanelf-ignored-LDFLAGS.log)
                                if [[ -n ${f} ]] ; then
                                        vecho -ne '\a\n'
-                                       eqawarn "QA Notice: Files built without respecting LDFLAGS have been detected"
+                                       eqawarn "${BAD}QA Notice: Files built without respecting LDFLAGS have been detected"
                                        eqawarn " Please include this file in your report:"
                                        eqawarn " ${T}/scanelf-ignored-LDFLAGS.log"
                                        eqawarn "${f}"
                                        vecho -ne '\a\n'
                                        sleep 1
+                               else
+                                       rm -f "${T}"/scanelf-ignored-LDFLAGS.log
                                fi
                        fi
                fi