summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-17 15:20:19 +0100
committerSam James <sam@gentoo.org>2022-04-17 15:20:19 +0100
commit8226609cee46af93656676350895135dbd910793 (patch)
tree8dd4d19f22bb3994a8c9ebf5b4d5631bd15250fa /metadata/install-qa-check.d/60libtool-la
parentmetadata/install-qa-check.d: add 60libtool-la (check for unnecessary .la files) (diff)
downloadgentoo-8226609cee46af93656676350895135dbd910793.tar.gz
gentoo-8226609cee46af93656676350895135dbd910793.tar.bz2
gentoo-8226609cee46af93656676350895135dbd910793.zip
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@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'metadata/install-qa-check.d/60libtool-la')
-rw-r--r--metadata/install-qa-check.d/60libtool-la2
1 files changed, 1 insertions, 1 deletions
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