rrs/tools/common.py: Handle exception when load_recipes caused by expand PV variable.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2015-07-07 08:54:32 -05:00 committed by Paul Eggleton
parent 12e6d9a9e0
commit 115bd943d9

View File

@ -116,6 +116,11 @@ def load_recipes(layerbranch, bitbakepath, fetchdir, settings, logger,
for rp in recipe_files:
try:
data = bb.cache.Cache.loadDataFull(rp, [], d)
try:
pv = data.getVar('PV', True)
except FetchError:
data.setVar('SRCPV', '')
recipes.append(data)
except Exception as e:
logger.warn("%s: branch %s couldn't be parsed, %s" \