summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2014-08-21 10:25:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-24 09:58:10 +0100
commit984ad90b2f1e29634dc79803a4a0404ab0534039 (patch)
tree6d735a2313297c280cdadb4e01f38a3e4f92b2c0 /lib
parent86a67a1fd4244da9343dbf14deed1ad0d3003f32 (diff)
downloadbitbake-contrib-984ad90b2f1e29634dc79803a4a0404ab0534039.tar.gz
depexp: don't use undefined variable 'logging'
This fixes an issue when trying to use depexp without specifying a recipe. Before change: $ bitbake -g -udepexp Traceback (most recent call last): File ".../bitbake/bin/bitbake", line 382, in <module> ret = main() File ".../bitbake/bin/bitbake", line 370, in main return ui_module.main(server_connection.connection, server_connection.events, configParams) File ".../bitbake/lib/bb/ui/depexp.py", line 201, in main logger.error(cmdline['msg']) NameError: global name 'logger' is not defined After change: $ bitbake -g -udepexp Please specify a package name for dependency graph generation. Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/depexp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/ui/depexp.py b/lib/bb/ui/depexp.py
index 4578dce61..5d13b5b79 100644
--- a/lib/bb/ui/depexp.py
+++ b/lib/bb/ui/depexp.py
@@ -198,7 +198,7 @@ def main(server, eventHandler, params):
print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.")
return 1
if 'msg' in cmdline and cmdline['msg']:
- logger.error(cmdline['msg'])
+ print(cmdline['msg'])
return 1
cmdline = cmdline['action']
if not cmdline or cmdline[0] != "generateDotGraph":