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 <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-03-20 17:02:41 +00:00
parent 9cec14c8a9
commit 42d710b640

View File

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