diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-21 10:58:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-22 14:40:39 +0000 |
commit | e9a9422ec38a096ab64dd0b15382c1a40b7a1fc9 (patch) | |
tree | a2a8bb42f9ed85fd826f7894655dffca6c9d48f0 /bitbake | |
parent | 047ce547edd61b0d3b15c22b3492f7595ce2bc66 (diff) | |
download | poky-e9a9422ec38a096ab64dd0b15382c1a40b7a1fc9.tar.gz |
Hob: Still use initcmd != None as the if judgement
This commit reverts part of change in 491c87d1, since initcmd has a
possible value of 0, therefore we must explicitly compare the initcmd
with None in if judgement.
(From Poky rev: 5736972974a769ea7ce6c92fdf6842db044f770d)
(Bitbake rev: ee55ca82c94080ef825d6de094e38ba40ee62e8b)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py index 71df81c6cd..e24c340126 100644 --- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py +++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py | |||
@@ -119,7 +119,7 @@ class HobHandler(gobject.GObject): | |||
119 | self.generating = False | 119 | self.generating = False |
120 | 120 | ||
121 | def run_next_command(self, initcmd=None): | 121 | def run_next_command(self, initcmd=None): |
122 | if initcmd: | 122 | if initcmd != None: |
123 | self.initcmd = initcmd | 123 | self.initcmd = initcmd |
124 | 124 | ||
125 | if self.commands_async: | 125 | if self.commands_async: |
@@ -127,7 +127,7 @@ class HobHandler(gobject.GObject): | |||
127 | next_command = self.commands_async.pop(0) | 127 | next_command = self.commands_async.pop(0) |
128 | else: | 128 | else: |
129 | self.clear_busy() | 129 | self.clear_busy() |
130 | if self.initcmd: | 130 | if self.initcmd != None: |
131 | self.emit("command-succeeded", self.initcmd) | 131 | self.emit("command-succeeded", self.initcmd) |
132 | return | 132 | return |
133 | 133 | ||