changeset 460:f84413dd5a7a

Avoid trying to look up non-file dependencies
author Chris Cannam
date Thu, 21 Jul 2011 09:56:57 +0100
parents 8f0c1b0f17fa
children 0ef4943f55ae
files misc/debian-dependencies.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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