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:
Aníbal Limón 2015-07-07 16:38:37 -05:00 committed by Paul Eggleton
parent ec0ae0dc29
commit 72cc4f72ba

View File

@ -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