bitbake: fetch2: Improve mirror looping to consider more cases
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jun 2012 12:49:39 +0000 (12:49 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Jun 2012 12:10:33 +0000 (13:10 +0100)
commit504a832ea83c578a5a4e956b4613d5de85674594
tree98b2fe8b5eb4908bc9438bef2642fc8102057935
parent4505c5a67a658911d3561c2ca188fcb39141e771
bitbake: fetch2: Improve mirror looping to consider more cases

Currently we only consider one pass through the mirror list. This doesn't
catch cases where for example you might want to setup a mirror of a mirror
and allow multiple redirection. There is no reason we can't support this
and the patch loops through the list recursively now.

As a safeguard, it will stop if any duplicate urls are found, hence
avoiding circular dependency looping.

(From Poky rev: 0ec0a4412865e54495c07beea1ced8355da58073)

(Bitbake rev: e585730e931e6abdb15ba8a3849c5fd22845b891)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py