From 6c12135117855302036313ea61d6b978af01f7b9 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 24 Feb 2013 20:50:52 +0000 Subject: [PATCH] Don't fail with an error due to unset LICENSE meta-ti has a recipe in it that causes parsing to fail with a fatal error due to LICENSE not being set; for the purposes of the layer index just set a default value for LICENSE so that this doesn't break parsing. Signed-off-by: Paul Eggleton --- layerindex/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layerindex/update.py b/layerindex/update.py index 2aa4bb8..c4eb446 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -175,6 +175,9 @@ def main(): tinfoil.config_data.setVar('DESCRIPTION', '') # Clear the default value of HOMEPAGE ('unknown') tinfoil.config_data.setVar('HOMEPAGE', '') + # Set a blank value for LICENSE so that it doesn't cause the parser to die (e.g. with meta-ti - + # why won't they just fix that?!) + tinfoil.config_data.setVar('LICENSE', '') # Fetch all layers