Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: metadata/install-qa-check.d/
Date: Thu, 05 May 2022 23:38:37
Message-Id: 1651793884.cc44ecdc302f5ba45b88e92befcebfab692cd931.sam@gentoo
1 commit: cc44ecdc302f5ba45b88e92befcebfab692cd931
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 5 23:38:04 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu May 5 23:38:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc44ecdc
7
8 metadata/install-qa-check.d: fix check for static library in 60libtool-la
9
10 Thanks-to: Ionen Wolkens <ionen <AT> gentoo.org>
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 metadata/install-qa-check.d/60libtool-la | 6 +-----
14 1 file changed, 1 insertion(+), 5 deletions(-)
15
16 diff --git a/metadata/install-qa-check.d/60libtool-la b/metadata/install-qa-check.d/60libtool-la
17 index 34344890333f..89b93fcfe6aa 100644
18 --- a/metadata/install-qa-check.d/60libtool-la
19 +++ b/metadata/install-qa-check.d/60libtool-la
20 @@ -25,11 +25,7 @@ libtool_la_check() {
21 local base
22 local bad_files=()
23 for file in "${files[@]}" ; do
24 - dir=$(dirname ${file})
25 - base=${dir%/}
26 - base=${base%.la}
27 -
28 - if [[ ! -f ${dir}/${base}.a ]] ; then
29 + if [[ ! -f ${file%.la}.a ]] ; then
30 bad_files+=( ${file} )
31 fi
32 done