diff options
author | Olof Johansson <olof.johansson@axis.com> | 2014-08-21 10:25:24 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-25 08:57:45 +0100 |
commit | 91083de4cb03bcb279ede3024cd2660b6c653808 (patch) | |
tree | 0b4bdb29e6509cb30e3bc976d5a4f24792f97dae /bitbake | |
parent | 6962cd83944d4e4cadede713bede048203d2d6d8 (diff) | |
download | poky-91083de4cb03bcb279ede3024cd2660b6c653808.tar.gz |
bitbake: 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.
(Bitbake rev: 984ad90b2f1e29634dc79803a4a0404ab0534039)
Signed-off-by: Olof Johansson <olof.johansson@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/depexp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/depexp.py b/bitbake/lib/bb/ui/depexp.py index 4578dce615..5d13b5b79e 100644 --- a/bitbake/lib/bb/ui/depexp.py +++ b/bitbake/lib/bb/ui/depexp.py | |||
@@ -198,7 +198,7 @@ def main(server, eventHandler, params): | |||
198 | print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") | 198 | print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") |
199 | return 1 | 199 | return 1 |
200 | if 'msg' in cmdline and cmdline['msg']: | 200 | if 'msg' in cmdline and cmdline['msg']: |
201 | logger.error(cmdline['msg']) | 201 | print(cmdline['msg']) |
202 | return 1 | 202 | return 1 |
203 | cmdline = cmdline['action'] | 203 | cmdline = cmdline['action'] |
204 | if not cmdline or cmdline[0] != "generateDotGraph": | 204 | if not cmdline or cmdline[0] != "generateDotGraph": |