Match the packaged libraries line by line in the APK check
The listing comes from unzip -l, so entries are newline separated; the glob compare used spaces and reported every library as missing even though the APK was complete.
This commit is contained in:
1 parent
f371dc0224
commit
0b94c75fd6
1 file changed
+4
-2
@@ -325,10 +325,12 @@ jobs:
|
||||
libavcodec.so libavfilter.so libavformat.so libavutil.so
|
||||
libavdevice.so libswresample.so libswscale.so"
|
||||
for apk in "${selected[@]}"; do
|
||||
packaged=$(unzip -l "$apk" | awk -v p="lib/$abi/" '$4 ~ p { print $4 }')
|
||||
packaged=$(unzip -l "$apk" | awk -v p="lib/$abi/" '$4 ~ "^"p { print $4 }')
|
||||
missing=""
|
||||
for lib in $needed; do
|
||||
case " $packaged " in *" lib/$abi/$lib "*) ;; *) missing="$missing $lib" ;; esac
|
||||
if ! printf '%s\n' "$packaged" | grep -qxF "lib/$abi/$lib"; then
|
||||
missing="$missing $lib"
|
||||
fi
|
||||
done
|
||||
if [ -n "$missing" ]; then
|
||||
echo "::error::$apk misses$missing"
|
||||
|
||||
Reference in new issue
Block a user