From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com ([192.55.52.88]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SALFA-0003Qq-Rz for bitbake-devel@lists.openembedded.org; Wed, 21 Mar 2012 14:06:25 +0100 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 21 Mar 2012 05:57:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="131476394" Received: from dongxiao-osel.sh.intel.com (HELO localhost) ([10.239.36.11]) by fmsmga001.fm.intel.com with ESMTP; 21 Mar 2012 05:57:29 -0700 From: Dongxiao Xu To: bitbake-devel@lists.openembedded.org Date: Wed, 21 Mar 2012 20:55:05 +0800 Message-Id: <450bb9ebc7674fc22a5d92268a4c3049c9ec2c11.1332334068.git.dongxiao.xu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: In-Reply-To: References: Subject: [PATCH 01/17] Hob: Still use initcmd != None as the if judgement X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Mar 2012 13:06:25 -0000 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. Signed-off-by: Dongxiao Xu --- lib/bb/ui/crumbs/hobeventhandler.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py index 71df81c..e24c340 100644 --- a/lib/bb/ui/crumbs/hobeventhandler.py +++ b/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 -- 1.7.4.1