summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-15 10:06:47 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-15 10:06:47 -0700
commit6620e74643e0baf040488557b1fff7273654a44d (patch)
tree429050ec4a43dba178a93885b0c0dc7a8d8928fb
parentd911efc22d0c16c13899917d8998b4fba256afd9 (diff)
downloadportage-6620e74643e0baf040488557b1fff7273654a44d.tar.gz
portage-6620e74643e0baf040488557b1fff7273654a44d.tar.bz2
portage-6620e74643e0baf040488557b1fff7273654a44d.zip
Skip QA Notice for hasq/useq during *rm phases.
-rwxr-xr-xbin/ebuild.sh3
-rw-r--r--bin/isolated-functions.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 2ef40cbd0..4aef4134d 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -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}
}
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 574f949d7..65bb1d5d5 100644
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -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 "$@"
}