Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id D84816079E for ; Fri, 2 Jun 2017 13:02:50 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id v52D2n4T016350 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 2 Jun 2017 14:02:50 +0100 Received: from richard by hex with local (Exim 4.86_2) (envelope-from ) id 1dGmE5-0004rr-Lt; Fri, 02 Jun 2017 14:02:49 +0100 From: Richard Purdie To: bitbake-devel@lists.openembedded.org Date: Fri, 2 Jun 2017 14:02:47 +0100 Message-Id: <1496408567-18673-1-git-send-email-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.7.4 X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (dan.rpsys.net [192.168.3.1]); Fri, 02 Jun 2017 14:02:50 +0100 (BST) X-Virus-Scanned: clamav-milter 0.99.2 at dan X-Virus-Status: Clean Subject: [PATCH] siggen: Make calc_taskhash match get_taskhash for file checksums X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2017 13:02:51 -0000 The code in these two functions is meant to be equivlanet in behaviour but isn't. Add in code to ensure files that don't exist are handled consistently by both functions. Users did report being able to generate tracebacks otherwise. Signed-off-by: Richard Purdie --- lib/bb/siggen.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bb/siggen.py b/lib/bb/siggen.py index 169756e..f71190a 100644 --- a/lib/bb/siggen.py +++ b/lib/bb/siggen.py @@ -667,7 +667,8 @@ def calc_taskhash(sigdata): data = data + sigdata['runtaskhashes'][dep] for c in sigdata['file_checksum_values']: - data = data + c[1] + if c[1]: + data = data + c[1] if 'taint' in sigdata: if 'nostamp:' in sigdata['taint']: -- 2.7.4