Skip QA Notice for hasq/useq during *rm phases.
authorZac Medico <zmedico@gentoo.org>
Fri, 15 Jul 2011 17:06:47 +0000 (10:06 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 15 Jul 2011 17:06:47 +0000 (10:06 -0700)
bin/ebuild.sh
bin/isolated-functions.sh

index 2ef40cbd0ed3b26a0ea75404c1ac12c9a7e8c8a7..4aef4134de7bc8123e820547462c2101420e4baf 100755 (executable)
@@ -128,7 +128,8 @@ esyslog() {
 }
 
 useq() {
-       eqawarn "QA Notice: The 'useq' function is deprecated (replaced by 'use')"
+       has $EBUILD_PHASE prerm postrm || eqawarn \
+               "QA Notice: The 'useq' function is deprecated (replaced by 'use')"
        use ${1}
 }
 
index 574f949d7e97632cfcc710d585105fd9b5c597cc..65bb1d5d5fd90869af59b867ebe7cc899d3a53a3 100644 (file)
@@ -512,7 +512,8 @@ if [[ -z ${XARGS} ]] ; then
 fi
 
 hasq() {
-       eqawarn "QA Notice: The 'hasq' function is deprecated (replaced by 'has')"
+       has $EBUILD_PHASE prerm postrm || eqawarn \
+               "QA Notice: The 'hasq' function is deprecated (replaced by 'has')"
        has "$@"
 }