aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2025-05-05 07:22:17 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2025-05-05 07:22:17 +0800
commit80021245b797e639b905699877a80266bad63bc1 (patch)
tree4aa6829d23556b9cae94c30f0bd5a13cf0d48825
parent0737b5af9c3d7d4bf97b94b1a2ceff36ac938002 (diff)
downloadautils-80021245b797e639b905699877a80266bad63bc1.tar.gz
autils-80021245b797e639b905699877a80266bad63bc1.zip
fix
-rwxr-xr-xrevdep4
1 files changed, 2 insertions, 2 deletions
diff --git a/revdep b/revdep
index 3418264..ba81e49 100755
--- a/revdep
+++ b/revdep
@@ -40,8 +40,8 @@ while read -r line; do
fi
if [ "$missinglib" ]; then
for i in $missinglib; do
- objdump -p /$line | grep NEEDED | awk '{print $2}' | grep -qx $i && {
- ownby=$(spm -o $line | head -n1 | awk '{print $1}')
+ objdump -p $line | grep NEEDED | awk '{print $2}' | grep -qx $i && {
+ ownby=$(spm -o ^${line#/}$ | head -n1 | awk '{print $1}')
[ "$ownby" ] || continue
if [ "$verbose" ]; then
echo " $ownby: $line (requires $i)"