From: Steve Youngs Date: Fri, 18 Jun 2021 05:29:27 +0000 (+1000) Subject: Fix dependency mining. X-Git-Url: http://cgit.sxemacs.org/?p=pkgusr;a=commitdiff_plain;h=f963117504425e54794d46cc1cca14dd32e1e7a9 Fix dependency mining. 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 --- diff --git a/usr/bin/list_package b/usr/bin/list_package index 9b7b6b8..51ef12d 100755 --- a/usr/bin/list_package +++ b/usr/bin/list_package @@ -5,7 +5,7 @@ # Author: Steve Youngs # Maintainer: Steve Youngs # Created: <2021-05-04> -# Time-stamp: +# Time-stamp: # 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