From e9a9422ec38a096ab64dd0b15382c1a40b7a1fc9 Mon Sep 17 00:00:00 2001 From: Dongxiao Xu Date: Wed, 21 Mar 2012 10:58:14 +0800 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py') 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): self.generating = False def run_next_command(self, initcmd=None): - if initcmd: + if initcmd != None: self.initcmd = initcmd if self.commands_async: @@ -127,7 +127,7 @@ class HobHandler(gobject.GObject): next_command = self.commands_async.pop(0) else: self.clear_busy() - if self.initcmd: + if self.initcmd != None: self.emit("command-succeeded", self.initcmd) return -- cgit v1.2.3-54-g00ecf