From 42d710b640b421f5a66922755d0ddc8d73a0ab03 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 20 Mar 2013 17:02:41 +0000 Subject: update.py: set log level earlier Ensure that we're not printing info messages when the -q option is specified. Signed-off-by: Paul Eggleton --- layerindex/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layerindex/update.py') diff --git a/layerindex/update.py b/layerindex/update.py index 338e31d3b7..8e7acceec5 100755 --- a/layerindex/update.py +++ b/layerindex/update.py @@ -189,6 +189,8 @@ def main(): setup_environ(settings) + logger.setLevel(options.loglevel) + branch = get_branch(options.branch) if not branch: logger.error("Specified branch %s is not valid" % options.branch) @@ -283,8 +285,6 @@ def main(): tinfoil = bb.tinfoil.Tinfoil() tinfoil.prepare(config_only = True) - logger.setLevel(options.loglevel) - # Clear the default value of SUMMARY so that we can use DESCRIPTION instead if it hasn't been set tinfoil.config_data.setVar('SUMMARY', '') # Clear the default value of DESCRIPTION so that we can see where it's not set -- cgit 1.2.3-korg