[OE-core] [oe-core][PATCH] wget.py: handle BBFetchException

Richard Purdie richard.purdie at linuxfoundation.org
Tue Mar 20 23:07:37 UTC 2018


On Tue, 2018-03-20 at 13:25 -0700, Bhargava Sreekantappa Gayathri
wrote:
> When BB_NO_NETWORK is set to 1 and the first mirror url needs network
> access, then bitbake will just fail and report error instead of going
> through the list of mirror urls. This is because BBFetchException is
> not
> handled when wget is called.
> 
> This patch calls wget with a except blocks which returns to the
> previous
> function instead of failing immediately.

This doesn't look right to me unfortunately. It looks like you special
cased one fetcher module when mirrors using other fetchers could also
fail. I'd have expected a patch to fix this somewhere in the mirrors
code, not in individual fetchers.

Am I missing a bug in the wget fetcher?

Cheers,

Richard



More information about the Openembedded-core mailing list