diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2017-07-17 03:17:03 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-21 08:41:11 +0100 |
commit | 579b811233d6183089e9687fc96fafae1932bc5c (patch) | |
tree | 1f2ce1da2da886e062863ef922885e76a32a20ab /bitbake/lib | |
parent | c276e38bf8f20d9f6ef0645d3c3050b383ac794a (diff) | |
download | poky-579b811233d6183089e9687fc96fafae1932bc5c.tar.gz |
bitbake: bb/main.py: fix logic for --observe-only
Fixed:
$ bitbake --observe-only
FATAL: '--observe-only' can only be used by UI clients connecting to a server.
And even:
$bitbake --observe-only -B localhost:-1
FATAL: '--observe-only' can only be used by UI clients connecting to a server.
This was beucase the brackets were in a wrong position.
(Bitbake rev: 4ffc91a2b3eb13e98078e6b1913f056a0c1797bc)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-x | bitbake/lib/bb/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index b09513f462..5ca3485096 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -355,7 +355,7 @@ def bitbake_main(configParams, configuration): | |||
355 | ("the BBSERVER environment variable" if "BBSERVER" in os.environ \ | 355 | ("the BBSERVER environment variable" if "BBSERVER" in os.environ \ |
356 | else "the '--remote-server' option")) | 356 | else "the '--remote-server' option")) |
357 | 357 | ||
358 | if configParams.observe_only and (not configParams.remote_server or configParams.bind): | 358 | if configParams.observe_only and not (configParams.remote_server or configParams.bind): |
359 | raise BBMainException("FATAL: '--observe-only' can only be used by UI clients " | 359 | raise BBMainException("FATAL: '--observe-only' can only be used by UI clients " |
360 | "connecting to a server.\n") | 360 | "connecting to a server.\n") |
361 | 361 | ||