mirror of
git://git.yoctoproject.org/poky
synced 2026-10-02 14:39:44 +00:00
bitbake/fetch2: Pass over malformatted (empty) mirror url lines
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
96aeec41bc
commit
20ab1cb0ca
@ -409,7 +409,11 @@ def try_mirrors(d, origud, mirrors, check = False):
|
|||||||
mirrors is the list of mirrors we're going to try
|
mirrors is the list of mirrors we're going to try
|
||||||
"""
|
"""
|
||||||
ld = d.createCopy()
|
ld = d.createCopy()
|
||||||
for (find, replace) in mirrors:
|
for line in mirrors:
|
||||||
|
try:
|
||||||
|
(find, replace) = line
|
||||||
|
except ValueError:
|
||||||
|
continue
|
||||||
newuri = uri_replace(origud, find, replace, ld)
|
newuri = uri_replace(origud, find, replace, ld)
|
||||||
if newuri == origud.url:
|
if newuri == origud.url:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user