Skip to content
Snippets Groups Projects
Commit df318296 authored by alice's avatar alice
Browse files

checkapk: don't objdump invalid elfs

cleans up the output a bit for things that have .so in the name
parent 535afd95
No related branches found
No related tags found
No related merge requests found
......@@ -121,8 +121,9 @@ for i in $pkgname $subpackages; do
+*) path="$_pkgname-pkg-new"; sofile="${diff_sofile#\+}" ;;
esac
# skip symlinks
if ! [ -L "$path"/"$sofile" ]; then
# skip symlinks (only adds duplicate output or is dangling), and things that aren't valid elfs
# matching .so above matches anything with .so in the name, e.g. xyz.sourceforge
if ! [ -L "$path"/"$sofile" ] && readelf -h "$path"/"$sofile" >/dev/null 2>&1; then
echo "$diff_sofile: " "$(objdump -p "$path"/"$sofile" | grep SONAME)"
fi
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment