diff misc/debian-dependencies.sh @ 460:f84413dd5a7a

Avoid trying to look up non-file dependencies
author Chris Cannam
date Thu, 21 Jul 2011 09:56:57 +0100
parents 84fd4bb8d656
children ac805901f02a
line wrap: on
line diff
--- a/misc/debian-dependencies.sh	Wed Jun 29 10:02:06 2011 +0100
+++ b/misc/debian-dependencies.sh	Thu Jul 21 09:56:57 2011 +0100
@@ -13,7 +13,7 @@
 trap "rm -f $pfile $rfile" 0
 echo
 
-ldd "$target" | awk '{ print $3; }' | while read lib; do
+ldd "$target" | awk '{ print $3; }' | grep '^/' | while read lib; do
     if test -n "$lib" ; then
 	dpkg-query -S "$lib"
     fi
@@ -24,6 +24,7 @@
 echo
 
 for p in `cat $pfile`; do 
+    echo Looking at $p 1>&2
     apt-cache showpkg "$p" | grep '^  ' | grep ',' | awk -F, '{ print $1; }' | \
 	while read d; do 
 	    if grep -q '^'$d'$' $pfile; then