From 5afaf7cc4811d60ef4c965f55c1c8fb3fb58100d Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 2 Feb 2018 17:55:29 +0000 Subject: [PATCH] BLFS/libs/func_dependencies: fix 2 stupid bug in function path_to --- BLFS/libs/func_dependencies | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BLFS/libs/func_dependencies b/BLFS/libs/func_dependencies index f43d07f..e1597f4 100644 --- a/BLFS/libs/func_dependencies +++ b/BLFS/libs/func_dependencies @@ -201,12 +201,12 @@ local id_of_dep 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