Author: pierre
Date: Fri Feb  2 09:55:29 2018
New Revision: 4032

Log:
BLFS/libs/func_dependencies: fix 2 stupid bug in function path_to

Modified:
   jhalfs/trunk/BLFS/libs/func_dependencies

Modified: jhalfs/trunk/BLFS/libs/func_dependencies
==============================================================================
--- jhalfs/trunk/BLFS/libs/func_dependencies    Tue Jan 30 05:53:34 2018        
(r4031)
+++ jhalfs/trunk/BLFS/libs/func_dependencies    Fri Feb  2 09:55:29 2018        
(r4032)
@@ -201,12 +201,12 @@
 local r
 
 if test "${start%.dep}" = "$seek"; then return 0; fi
-seen="$seen$file "
-if test -s $file; then
+seen="$seen$start "
+if test -s $start; then
   {
   while read prio_of_dep build_of_dep id_of_dep; do
     if test "$prio" -lt "$prio_of_dep"; then continue; fi
-    if test "${seen% $id_of_dep *}" = "$seen"; then continue; fi
+    if ! test "${seen% $id_of_dep *}" = "$seen"; then continue; fi
     if path_to ${id_of_dep}.dep $seek $prio; then return 0; fi
   done
   } < $start
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to