checkapk: don't objdump invalid elfs
cleans up the output a bit for things that have .so in the name
This commit is contained in:
parent
535afd9544
commit
df31829660
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue