commit:     cc44ecdc302f5ba45b88e92befcebfab692cd931
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu May  5 23:38:04 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu May  5 23:38:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc44ecdc

metadata/install-qa-check.d: fix check for static library in 60libtool-la

Thanks-to: Ionen Wolkens <ionen <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

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

diff --git a/metadata/install-qa-check.d/60libtool-la 
b/metadata/install-qa-check.d/60libtool-la
index 34344890333f..89b93fcfe6aa 100644
--- a/metadata/install-qa-check.d/60libtool-la
+++ b/metadata/install-qa-check.d/60libtool-la
@@ -25,11 +25,7 @@ libtool_la_check() {
        local base
        local bad_files=()
        for file in "${files[@]}" ; do
-               dir=$(dirname ${file})
-               base=${dir%/}
-               base=${base%.la}
-
-               if [[ ! -f ${dir}/${base}.a ]] ; then
+               if [[ ! -f ${file%.la}.a ]] ; then
                        bad_files+=( ${file} )
                fi
        done

Reply via email to