summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-09 15:57:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-28 17:03:13 +0000
commitd52655e517072697231681846c7fbe7368dac554 (patch)
treedf196194c09acf51570ff065c7d836d9690eddcc /bitbake
parent6399d307ad493eee4d3d99ac815823557e2f1111 (diff)
downloadpoky-d52655e517072697231681846c7fbe7368dac554.tar.gz
bitbake: lib/bb/server: Avoid UnboundLocalError traceback
Traceback (most recent call last): File "/home/pokybuild/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/main.py", line 464, in setup_bitbake server_connection = bb.server.process.connectProcessServer(sockname, featureset) File "/home/pokybuild/yocto-worker/nightly-oe-selftest/build/bitbake/lib/bb/server/process.py", line 490, in connectProcessServer if command_chan_recv: UnboundLocalError: local variable 'command_chan_recv' referenced before assignment (Bitbake rev: 257ed88590883f46beec0164749e45733e67954e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/server/process.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index eb794e0dd4..1a6a826746 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -471,6 +471,9 @@ def connectProcessServer(sockname, featureset):
471 # AF_UNIX has path length issues so chdir here to workaround 471 # AF_UNIX has path length issues so chdir here to workaround
472 cwd = os.getcwd() 472 cwd = os.getcwd()
473 473
474 readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None
475 eq = command_chan_recv = command_chan = None
476
474 try: 477 try:
475 try: 478 try:
476 os.chdir(os.path.dirname(sockname)) 479 os.chdir(os.path.dirname(sockname))
@@ -478,9 +481,6 @@ def connectProcessServer(sockname, featureset):
478 finally: 481 finally:
479 os.chdir(cwd) 482 os.chdir(cwd)
480 483
481 readfd = writefd = readfd1 = writefd1 = readfd2 = writefd2 = None
482 eq = command_chan_recv = command_chan = None
483
484 # Send an fd for the remote to write events to 484 # Send an fd for the remote to write events to
485 readfd, writefd = os.pipe() 485 readfd, writefd = os.pipe()
486 eq = BBUIEventQueue(readfd) 486 eq = BBUIEventQueue(readfd)