From 6620e74643e0baf040488557b1fff7273654a44d Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 15 Jul 2011 10:06:47 -0700 Subject: [PATCH] Skip QA Notice for hasq/useq during *rm phases. --- bin/ebuild.sh | 3 ++- bin/isolated-functions.sh | 3 ++- 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 "$@" } -- 2.26.2