summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2013-10-28 23:27:03 -0400
committerPierre Schmitz <pierre@archlinux.de>2013-11-01 18:35:54 +0100
commite3cf64ad2f83d979b8ca86445b612f5268725cb6 (patch)
tree21f3b04742f5e903b9922e8d386a8417ad8c8707
parent7524bec6d930992876611f6c901852d8ae0d7ab0 (diff)
downloaddevtools32-e3cf64ad2f83d979b8ca86445b612f5268725cb6.tar.xz
checkpkg: Only match .so at end of filenames for soname check
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rw-r--r--checkpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkpkg.in b/checkpkg.in
index 4d2a905..4a46df3 100644
--- a/checkpkg.in
+++ b/checkpkg.in
@@ -74,7 +74,7 @@ for _pkgname in "${pkgname[@]}"; do
if diff "$TEMPDIR/filelist-$_pkgname"{-old,} | grep '\.so' &>/dev/null; then
mkdir -p "$TEMPDIR/pkg"
bsdtar -x -C "$TEMPDIR" -f "$pkgfile" #> /dev/null
- diff "$TEMPDIR/filelist-$_pkgname-old" "$TEMPDIR/filelist-$_pkgname" | awk '/>.*\.so/{$1 = ""; print $0}' | while read i; do
+ comm -13 <(sort "$TEMPDIR/filelist-$_pkgname-old") <(sort "$TEMPDIR/filelist-$_pkgname") | grep .so$ | while read i; do
echo "${i}: " "$(objdump -p "$TEMPDIR/$i" | grep SONAME)"
done
else