[debian-edu-commits] r78742 - trunk/src/hw-support-handler

pere at alioth.debian.org pere at alioth.debian.org
Mon Jan 14 22:20:14 UTC 2013


Author: pere
Date: 2013-01-14 22:20:13 +0000 (Mon, 14 Jan 2013)
New Revision: 78742

Modified:
   trunk/src/hw-support-handler/hw-support-lookup
Log:
Make sure debugging work properly.

Modified: trunk/src/hw-support-handler/hw-support-lookup
===================================================================
--- trunk/src/hw-support-handler/hw-support-lookup	2013-01-14 22:08:16 UTC (rev 78741)
+++ trunk/src/hw-support-handler/hw-support-lookup	2013-01-14 22:20:13 UTC (rev 78742)
@@ -27,7 +27,8 @@
     do
 	GET $ubmirror/dists/$suite/$section/binary-$arch/Packages.bz2 | bunzip2
     done
-    if [ -r modaliases ] ; then cat modaliases; fi
+    echo $scriptdir
+    if [ -r $scriptdir/modaliases ] ; then cat $scriptdir/modaliases; fi
     if [ -r /usr/share/hw-support-handler/modaliases ] ; then
 	cat /usr/share/hw-support-handler/modaliases
     fi
@@ -60,6 +61,7 @@
 pkglookup() {
     while read package modaliases ; do
 	for alias in $(echo $modaliases | tr ")" "\n" | cut -d"(" -f2 | sed "s/, /\n/g" | escape); do
+#	    echo "$package $alias" 1>&2
 	    if ls "$alias" >/dev/null 2>&1 ; then
 		echo $package
 	    fi
@@ -67,6 +69,8 @@
     done | sort -u
 }
 
+scriptdir=$(cd $(dirname $0); pwd)
+
 dir=$(mktemp -d)
 cd $dir
 




More information about the debian-edu-commits mailing list