commit:     8226609cee46af93656676350895135dbd910793
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 14:20:19 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 14:20:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8226609c

metadata/install-qa-check.d: swap libltdl check to 'has'

It's a bit cleaner and will hopefully mean we don't catch a hypothetical
libltdl2. Not too stressed over such a possibility anyway.

Thanks-to: michael Orlitzky <mjo <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 metadata/install-qa-check.d/60libtool-la | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metadata/install-qa-check.d/60libtool-la 
b/metadata/install-qa-check.d/60libtool-la
index fd21ec8406d3..6a1af9ce5a64 100644
--- a/metadata/install-qa-check.d/60libtool-la
+++ b/metadata/install-qa-check.d/60libtool-la
@@ -11,7 +11,7 @@ libtool_la_check() {
        local files=$(find "${ED}"/usr/lib* -name '*.la' -print 2>/dev/null)
        [[ -n "${files[@]}" ]] || return
 
-       if grep -q "dev-libs/libltdl" <<<${RDEPEND}; then
+       if has "dev-libs/libltdl" ${RDEPEND}; then
                # Nothing to do here
                return
        fi

Reply via email to