Tomas Janousek 7eecaf
--- brltty-3.9/Bindings/Tcl/pkgutil.tcl85	2007-10-17 17:19:30.000000000 +0200
Tomas Janousek 7eecaf
+++ brltty-3.9/Bindings/Tcl/pkgutil	2008-01-04 16:07:25.000000000 +0100
Tomas Janousek e2b126
@@ -31,7 +31,7 @@
Tomas Janousek e2b126
             }
Tomas Janousek e2b126
             set directory [eval file join / [lrange $components $rootCount end]]
Tomas Janousek e2b126
 
Tomas Janousek 7eecaf
-            if {[lsearch -exact {lib lib64} [file tail $directory]] >= 0} {
Tomas Janousek 7eecaf
+            if {[regexp /lib(64)?(/|$) $directory] >= 0} {
Tomas Janousek e2b126
                global optionValues packageName packageVersion
Tomas Janousek e2b126
                return [file join "$optionValues(root)$directory" "$packageName-$packageVersion"]
Tomas Janousek e2b126
             }