commit:     591e7e12009ce6599d2684dfde5eece236fdcdfb
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat May  7 05:56:02 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun May 15 01:02:43 2022 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=591e7e12

bin/install-qa-check.d/05prefix: egrep -> grep -E

Newer greps will warn on this.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 bin/install-qa-check.d/05prefix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/install-qa-check.d/05prefix b/bin/install-qa-check.d/05prefix
index e1fc2bd99..c1a5606d8 100644
--- a/bin/install-qa-check.d/05prefix
+++ b/bin/install-qa-check.d/05prefix
@@ -20,7 +20,7 @@ install_qa_check_prefix() {
        fi
 
        if [[ -d ${D} ]] ; then
-               INSTALLTOD=$(find ${D%/} | egrep -v "^${ED}" | sed -e 
"s|^${D%/}||" | awk '{if (length($0) <= length("'"${EPREFIX}"'")) { if 
(substr("'"${EPREFIX}"'", 1, length($0)) != $0) {print $0;} } else if 
(substr($0, 1, length("'"${EPREFIX}"'")) != "'"${EPREFIX}"'") {print $0;} }')
+               INSTALLTOD=$(find ${D%/} | grep -E -v "^${ED}" | sed -e 
"s|^${D%/}||" | awk '{if (length($0) <= length("'"${EPREFIX}"'")) { if 
(substr("'"${EPREFIX}"'", 1, length($0)) != $0) {print $0;} } else if 
(substr($0, 1, length("'"${EPREFIX}"'")) != "'"${EPREFIX}"'") {print $0;} }')
                if [[ -n ${INSTALLTOD} ]] ; then
                        eqawarn "QA Notice: the following files are outside of 
the prefix:"
                        eqawarn "${INSTALLTOD}"

Reply via email to