[oe-commits] [bitbake] 18/18: bb/main.py: fix logic for --observe-only

git at git.openembedded.org git at git.openembedded.org
Wed Jul 19 09:43:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 6cb2032d33a620fa6c7bdbc125b3ff69d0f9eaed
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Mon Jul 17 03:17:03 2017 -0700

    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 at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/main.py b/lib/bb/main.py
index 8b2f2e3..df345e8 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")
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list