tg.sh: prevent dependency loops during recurse_depstopgit-0.19.2
commitf2936b467ca93989a250d152ab195758fb4f386b
authorKyle J. McKay <mackyle@gmail.com>
Sat, 13 Feb 2016 14:09:51 +0000 (13 06:09 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 13 Feb 2016 14:09:51 +0000 (13 06:09 -0800)
tree0a536a24fc748a0b13a1bdce34e6264cf83385d3
parentf825e767ee17156148ea10419339b31fd5d74ab3
tg.sh: prevent dependency loops during recurse_deps

If we have already visited the dependency we are about
to recurse into, complain and skip it.

There should not be any dependency loops.

However, if the checks that prevent creation of such
loops have been bypassed, avoid infinite recursion
by noticing the loop and avoiding it with a warning.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
tg.sh