Fix dependency mining.
authorSteve Youngs <steve@steveyoungs.com>
Fri, 18 Jun 2021 05:29:27 +0000 (15:29 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Fri, 18 Jun 2021 05:31:32 +0000 (15:31 +1000)
I came across a package with application/x-sharedlib binaries where the
filename missed it being included in libs but the mime type missed it be
included in extra bins.  This takes care of that.

* usr/bin/list_package (categorise): Binaries from outside
/**/{s,}bin will qualify for all execs if they are executable or a
sharedlib.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
usr/bin/list_package

index 9b7b6b8..51ef12d 100755 (executable)
@@ -5,7 +5,7 @@
 # Author:     Steve Youngs <steve@sxemacs.org>
 # Maintainer: Steve Youngs <steve@sxemacs.org>
 # Created:    <2021-05-04>
-# Time-stamp: <Saturday 29 May 2021 18:45:41 (steve)>
+# Time-stamp: <Friday 18 Jun 2021 15:19:46 (steve)>
 # Homepage:   https://git.sxemacs.org/pkgusr
 # Keywords:   pkgusr package-management tools
 
@@ -248,7 +248,7 @@ categorise()
                    -x ${PKGASSETS[$i]} ]]; then
            EBINS[$E]=${PKGASSETS[$i]}
            # add to the list of all execs (not scripts)
-           if [[ $(file -i ${EBINS[$E]}) =~ x-executable ]]; then
+           if [[ $(file -i ${EBINS[$E]}) =~ x-(executable|sharedlib) ]]; then
                AEXEC[$A]=${EBINS[$E]}
                A=$((($A + 1)))
            fi