Skip to content

Commit a019efc

Browse files
authored
Merge pull request #373 from part-cw/Peter
MAKE.SH: handle module/plugin dependency loops
2 parents 4ff2ba7 + 748ff6f commit a019efc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

make.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,11 @@ add_items_int()
792792
idir=`locatedir $itemname/$newi silent`
793793
if [ ! "X$idir" = "X" ]; then
794794
isold=no
795+
for oldi in $lasti; do
796+
if [ $oldi = $newi ]; then
797+
isold=yes
798+
fi
799+
done
795800
for oldi in $items; do
796801
if [ $oldi = $newi ]; then
797802
isold=yes
@@ -808,10 +813,6 @@ add_items_int()
808813
lasti=`echo $lasti | cut -d' ' -f2-`
809814
else
810815
items="$items $newi"
811-
newi=`echo $lasti | cut -d' ' -f1`
812-
if [ ! "X$newi" = "X" ] && [ ! "X$oldi" = "X" ] && [ $oldi = $newi ]; then
813-
lasti=`echo $lasti | cut -d' ' -f2-`
814-
fi
815816
fi
816817
fi
817818
else

0 commit comments

Comments
 (0)