aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 17:02:41 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 17:04:56 +0000
commit42d710b640b421f5a66922755d0ddc8d73a0ab03 (patch)
tree717242a6a91598e827a35c8f84abb170716e3011
parent9cec14c8a96698d8dff268b14afbcb5610523d27 (diff)
downloadopenembedded-core-contrib-42d710b640b421f5a66922755d0ddc8d73a0ab03.tar.gz
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>
-rwxr-xr-xlayerindex/update.py4
1 files changed, 2 insertions, 2 deletions
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