summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/runqueue.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-03-08 12:07:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-31 12:23:23 +0100
commit67fac77e10269099796a6bd03ddaf1580949a4b8 (patch)
treeecad8654411a5954483843ea76ad626b9ee27029 /bitbake/lib/bb/runqueue.py
parent626b96e255b6461e2bce209ecfc1ff110f65d54e (diff)
downloadpoky-67fac77e10269099796a6bd03ddaf1580949a4b8.tar.gz
Fix more incorrect usages of 'is'
(Bitbake rev: a26a2f548419af0e971ad21ec0a29e5245fe307f) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
-rw-r--r--bitbake/lib/bb/runqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
index 3773ec0e1e..dcb2e0a86b 100644
--- a/bitbake/lib/bb/runqueue.py
+++ b/bitbake/lib/bb/runqueue.py
@@ -929,7 +929,7 @@ class RunQueue:
929 929
930 if self.state is runQueuePrepare: 930 if self.state is runQueuePrepare:
931 self.rqexe = RunQueueExecuteDummy(self) 931 self.rqexe = RunQueueExecuteDummy(self)
932 if self.rqdata.prepare() is 0: 932 if self.rqdata.prepare() == 0:
933 self.state = runQueueComplete 933 self.state = runQueueComplete
934 else: 934 else:
935 self.state = runQueueSceneInit 935 self.state = runQueueSceneInit
@@ -1018,7 +1018,7 @@ class RunQueueExecute:
1018 collect the process exit codes and close the information pipe. 1018 collect the process exit codes and close the information pipe.
1019 """ 1019 """
1020 result = os.waitpid(-1, os.WNOHANG) 1020 result = os.waitpid(-1, os.WNOHANG)
1021 if result[0] is 0 and result[1] is 0: 1021 if result[0] == 0 and result[1] == 0:
1022 return None 1022 return None
1023 task = self.build_pids[result[0]] 1023 task = self.build_pids[result[0]]
1024 del self.build_pids[result[0]] 1024 del self.build_pids[result[0]]