mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
rrs/tools/common.py: Add import of FetchError and display parse errors
Import of FetchError when try to expand PV somethings requires to have SRCREV/SRCPV causing an FetcherError. Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
parent
ec0ae0dc29
commit
72cc4f72ba
|
@ -92,6 +92,7 @@ def get_recipe_files(layerdir):
|
||||||
def load_recipes(layerbranch, bitbakepath, fetchdir, settings, logger,
|
def load_recipes(layerbranch, bitbakepath, fetchdir, settings, logger,
|
||||||
recipe_files=None, nocheckout=False):
|
recipe_files=None, nocheckout=False):
|
||||||
from layerindex import recipeparse
|
from layerindex import recipeparse
|
||||||
|
from bb.fetch import FetchError
|
||||||
|
|
||||||
try:
|
try:
|
||||||
(tinfoil, tempdir) = recipeparse.init_parser(settings,
|
(tinfoil, tempdir) = recipeparse.init_parser(settings,
|
||||||
|
@ -123,7 +124,7 @@ def load_recipes(layerbranch, bitbakepath, fetchdir, settings, logger,
|
||||||
|
|
||||||
recipes.append(data)
|
recipes.append(data)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn("%s: branch %s couldn't be parsed, %s" \
|
logger.error("%s: branch %s couldn't be parsed, %s" \
|
||||||
% (layerbranch, rp, str(e)))
|
% (layerbranch, rp, str(e)))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user