summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-07-17 03:17:03 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 07:20:14 +0100
commit4ffc91a2b3eb13e98078e6b1913f056a0c1797bc (patch)
treea25538fe697b5fe293831434caf7358f530cdf27
parent335fd0106359dddfe1eeb0c7d0bc03f8454b895c (diff)
downloadbitbake-contrib-4ffc91a2b3eb13e98078e6b1913f056a0c1797bc.tar.gz
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. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xlib/bb/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py
index b09513f46..5ca348509 100755
--- a/lib/bb/main.py
+++ b/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")