From patchwork Wed Nov 6 15:37:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Rapeli X-Patchwork-Id: 178745 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp883878ilf; Wed, 6 Nov 2019 09:02:28 -0800 (PST) X-Google-Smtp-Source: APXvYqwbqFD5P+sNtzJxYU5xkj4aDBwwM95p/K3PKb5BhiKuw018MktJBkprveLyYMdc/mPrOViF X-Received: by 2002:a65:654e:: with SMTP id a14mr3993809pgw.170.1573059747883; Wed, 06 Nov 2019 09:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573059747; cv=none; d=google.com; s=arc-20160816; b=JmmvcOGWyAy+iDP3sHGjxoAwi0GS0OnUfg2x6MH5SmAKwy6TjWUuJ4kAAov6ONcUsb G9xu9X5IdFy9Ux8BOwdZwRIQCUOfRY5iHAFYq5WRTxQd9pFzaNvYcJJCv0wCQWO9DjJt 02lnoBUOHV7O5QKrz9vnTmrKCCqxLjcSWE5bxC+V5sYao01zddMjgtITVclnSwRwipTK UZyOU/cmSl7SsI43r5T3gfJYJxUCsUrm1/Bdj6mFT8mdE9XK7hWnb7oUKp7qJi+QKaXG 5dPpRU3Y4WudmzNpE/sTvU3TdBLxf92vB7+UE/dr4I/QDdmwUiYgUuCpx8LOtIqs0/Io wl2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:references :in-reply-to:message-id:date:to:from:dkim-signature:delivered-to; bh=YuSR5nvJBDoIfp+Qmub214StB0xXoovRWMhm0dEVMUY=; b=ml7l8hQRPm6jizo5eb2lWHn9o7enU2VBWEqk+xsh/CwaAt7h67Y2Jy2xNOsIyxKlXt HkQ8TONSIRYm3JianNrI5EwKNbKvgZlz9DDVb8vVb/Zqht+y0nAwYpwBts8rHN90U1An E1OejzUeqGXqPjH8baGYDvmj6toiBcBEgIjyH9s+QDc1M6lWaN0Cox1RfKq1uL7y5BiD ctrEWEElV0Ipy5NmU+PxoL8Vyaxe43xOBrqW84HZ+hMt+Uw2xE2H0dHrAUMAuamiZ/Kw djWb+X3ArmiZkm7aR3w/L5K4YIfE9RAol0DeAxtaeRIHPc05zefE+eLKLT8Jq+tESHls cg3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kapsi.fi header.s=20161220 header.b=U0GteLOs; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bmw.de Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id q129si30677363pfq.213.2019.11.06.09.02.27; Wed, 06 Nov 2019 09:02:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kapsi.fi header.s=20161220 header.b=U0GteLOs; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bmw.de Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 37E8F7FA6F; Wed, 6 Nov 2019 17:02:07 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail.kapsi.fi (mail.kapsi.fi [91.232.154.25]) by mail.openembedded.org (Postfix) with ESMTP id 8A6057F96F for ; Wed, 6 Nov 2019 15:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Subject:References:In-Reply-To:Message-Id:Date:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0BLUxIDosntKT7JbjuSC/B3qEOJxmJGvt1pD3xp6h1U=; b=U0GteLOsk6nSm8QL9ojifPpuOP jAWqAwkgTFFQqM/bDoXA011Kj8W9zpci1ieiv+aQifV55YBdFGJ8gPRs/RB9+OIS7A9CP8PGub2Z4 F6zyhxJy+yHnLqLBTGk24lwT2VPZv8HnB/0cnXJqcqBX0TukTbfeDcKyxE/YPsu9y3Wh4CHdyG/AC 7oOISwheE6jXpdn+PzikN/5axNIQguoQXauDS6ng5I/i5y/zSnYVK7U3vzkRMSwncqSRWecjQMPD9 w4qXI863pdKZWv9gnFQNTFIZpOF6ZneYz510/rq2I0+5DuPRfQDGgHcCHKs31t+VD/iQMNbn8qsfY a/xR+Mjg==; Received: from [2001:67c:1be8::12] (helo=lakka.kapsi.fi) by mail.kapsi.fi with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iSNOd-00009j-24; Wed, 06 Nov 2019 17:39:00 +0200 Received: from mcfrisk by lakka.kapsi.fi with local (Exim 4.84_2) (envelope-from ) id 1iSNO5-0007WD-DF; Wed, 06 Nov 2019 17:38:25 +0200 From: Mikko Rapeli To: openembedded-core@lists.openembedded.org Date: Wed, 6 Nov 2019 17:37:34 +0200 Message-Id: <9b102be1ec621975328f6651220be0d4b475b570.1573047194.git.mikko.rapeli@bmw.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: X-Rspam-Score: 8.3 (++++++++) X-Rspam-Report: Action: add header Symbol: ARC_NA(0.00) Symbol: DMARC_POLICY_SOFTFAIL(0.10) Symbol: FROM_HAS_DN(0.00) Symbol: RCPT_COUNT_THREE(0.00) Symbol: R_SPF_ALLOW(-0.20) Symbol: MULTIPLE_UNIQUE_HEADERS(4.89) Symbol: MIME_GOOD(-0.10) Symbol: TO_MATCH_ENVRCPT_ALL(0.00) Symbol: NEURAL_SPAM(0.00) Symbol: TO_DN_SOME(0.00) Symbol: RCVD_TLS_LAST(0.00) Symbol: MID_CONTAINS_FROM(1.00) Symbol: IP_SCORE(-0.19) Symbol: FORGED_SENDER(0.30) Symbol: R_DKIM_NA(0.00) Symbol: MIME_TRACE(0.00) Symbol: ASN(0.00) Symbol: FROM_NEQ_ENVFROM(0.00) Symbol: HFILTER_HOSTNAME_UNKNOWN(2.50) Symbol: RCVD_COUNT_TWO(0.00) Message: (SPF): spf allow Message-ID: 9b102be1ec621975328f6651220be0d4b475b570.1573047194.git.mikko.rapeli@bmw.de X-Rspam-Status: Yes X-Rspam-Bar: ++++++++ X-SA-Exim-Connect-IP: 2001:67c:1be8::12 X-SA-Exim-Mail-From: mcfrisk@kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RDNS_NONE,SPF_HELO_NONE,SPF_NEUTRAL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) Subject: [OE-core] [PATCH RFC CFH][sumo 19/47] cve-update-db-native: use SQL placeholders instead of format strings X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton (From OE-Core rev: 91770338f76ef35f3c4eeac216eb9d2b3188e575) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-core/meta/cve-update-db-native.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index ae8f1a9..d60159b 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb @@ -57,7 +57,7 @@ python do_populate_cve_db() { break # Compare with current db last modified date - c.execute("select DATE from META where YEAR = '%d'" % year) + c.execute("select DATE from META where YEAR = ?", (year,)) meta = c.fetchone() if not meta or meta[0] != last_modified: # Update db with current year json file