From: Robert Yang Date: Mon, 17 Jul 2017 10:17:03 +0000 (-0700) Subject: bitbake: bb/main.py: fix logic for --observe-only X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=579b811233d6183089e9687fc96fafae1932bc5c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index b09513f4628..5ca34850964 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py @@ -355,7 +355,7 @@ def bitbake_main(configParams, configuration): ("the BBSERVER environment variable" if "BBSERVER" in os.environ \ else "the '--remote-server' option")) - if configParams.observe_only and (not configParams.remote_server or configParams.bind): + if configParams.observe_only and not (configParams.remote_server or configParams.bind): raise BBMainException("FATAL: '--observe-only' can only be used by UI clients " "connecting to a server.\n")