From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C3A11E00D90; Wed, 6 Dec 2017 23:37:51 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [147.11.1.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2DA6AE00D7F for ; Wed, 6 Dec 2017 23:37:41 -0800 (PST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id vB77beYi025457 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 6 Dec 2017 23:37:40 -0800 (PST) Received: from pek-lpg-core1.wrs.com (128.224.156.132) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.361.1; Wed, 6 Dec 2017 23:37:40 -0800 From: Robert Yang To: Date: Thu, 7 Dec 2017 15:37:06 +0800 Message-ID: <9ba5e6391610f1b65eab1b0d1015f0ba88752c96.1512630627.git.liezhi.yang@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Cc: paul.eggleton@linux.intel.com Subject: [PATCH 01/12] upgradehelper.py: fix checking for do_checkpkg X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2017 07:37:51 -0000 Content-Type: text/plain The error message in the log is: Initialising tasks...ERROR: Task do_checkpkg does not exist for target strace [snip] So line.find("ERROR: Task do_checkpkg does not exist") == 0 doesn't work, use != -1 to fix the problem. Signed-off-by: Robert Yang --- upgradehelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgradehelper.py b/upgradehelper.py index 8e5466e..d439a4c 100755 --- a/upgradehelper.py +++ b/upgradehelper.py @@ -753,7 +753,7 @@ class UniverseUpdater(Updater): self.bb.checkpkg(recipe) except Error as e: for line in e.stdout.split('\n'): - if line.find("ERROR: Task do_checkpkg does not exist") == 0: + if line.find("ERROR: Task do_checkpkg does not exist") != -1: C(" \"distrodata.bbclass\" not inherited. Consider adding " "the following to your local.conf:\n\n" "INHERIT =+ \"distrodata\"\n") -- 2.7.4