From patchwork Wed Jul 17 10:45:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 169111 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp798979ilk; Wed, 17 Jul 2019 03:46:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3VJ+2PcQ7iOWIwyCT00Vnw99hhmXCaywe6Ke5/N9RdprZKksOSdlvxXBIt6qgXXMmcql5 X-Received: by 2002:a65:6294:: with SMTP id f20mr41351369pgv.349.1563360398152; Wed, 17 Jul 2019 03:46:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563360398; cv=none; d=google.com; s=arc-20160816; b=mvOwnnRkmic6iRjpN9AAhe4d3TLoOfILiydCZcpVsEfmAkTtYwl7GsinIwMTO3UT2S mXjn+nPdjKewPuaYfCq2t556RRIlCsz1KQI4kyUPnsQujX72Y/r94tU/vSDfmHUxdD41 9to6zLzm3zDYuUDi1NFyOaWyeZtncC1pXsHgh5rKegY/FB5OAjv/AcgE/1Yv4gZPc5ko or602YGBF3CdhcGJuTx7T5J7PqchZAat9xp2zUEKItjTaSvTCUg85Kg51++hKN1jZgGy fn6RcY3fWXXzySyda1DRzOVtCd5VrYHGsaNwTBok1qnReYOKeAyR8Z8kQC+HrZVmh5dA 6ERQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=BAAfuLOP1ZR/i0OM8RivhybYVjgvGOVxXMmPUuko0Sw=; b=JHNUN2ZKKruX2en6nyyDoaPKLpPW1izDdQ8RUBeYd2Jb6iYuOq8VJiE/+3YP1F+cJT atszGp03FyuErW3LNpNSdAuJaMTwXR6BX9Ef/JvViGDD74aHYb/6C4cFepVAQobfAC7l zWtTC1yuRXTcD1L6JkNBgyoXoJ+3dAoPXQkKaC8gea9KfhkTAw/8Gr9v+dkuAH0nBTIB zQ+riyi2LRzKq4JUYk1gvBudFF4SDf4c5eNYQOhSLuptJseFgn6SRlH7a92awdU6jDw3 J41v5lml/HpsE7kz8Ly38fxW2l3kYkUiAghugWKrEu3zMdcVuR+/m/FHY5R9ptpvr7Tg mjpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Qq2TiALm; 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=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id e16si16726787pgt.2.2019.07.17.03.46.37; Wed, 17 Jul 2019 03:46:38 -0700 (PDT) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Qq2TiALm; 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=intel.com 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 1BCA97ED48; Wed, 17 Jul 2019 10:46:33 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by mail.openembedded.org (Postfix) with ESMTP id 31D787ED15 for ; Wed, 17 Jul 2019 10:45:48 +0000 (UTC) Received: by mail-wm1-f47.google.com with SMTP id p74so21636178wme.4 for ; Wed, 17 Jul 2019 03:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9lbR4I4+UUHgZVeaqH+baS/K1cDsjqlxsC88Fr0UKIs=; b=Qq2TiALmuMzLsf1q10Hzn7V7PMl/IrQOS/PKllKzE352RY+mjd0KFuj3SRwl+A2Jfw wVgG1579H6ZR/m6jlTmR5ePTbN1rhkcWStA0jK0KrErOR8JihId+TrHOZ0ImKg3ZkV5Q rLqYaqTurpcq6P0ZIw1/9/jyRNo2HKEo2OhKO+s3wQU0eRazPiBw1KqJS7q+1YZyYrK0 qSvlcQrKv8aZ3iE5QHN0WnKIT8nHIioryL2c0zyF7SJgklF62xuFlqMFTuIvw5DMa6GW GJVMiWzf2i/b4J+XjO4/PxT3Swql2LUEZEAeSgR3hvQAEOpW01ao0ybBYmLgs2JJ6VaA N2lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9lbR4I4+UUHgZVeaqH+baS/K1cDsjqlxsC88Fr0UKIs=; b=bJo0H5Me2WiyJRpZNATMiJXPYRGed/Bf9GzuZOGSgVgLXisgb41cRcTKPHSNGm5xJD 5Ub+qOXDEQpmM2FYDuLh4SoFPx6cWk6dgiyf6S5Dgl9QOKWwZZlS5xYUIfBmCQVNcTiu +ZDC5Pyzekej28i6ZkqWE5gxSzJYbqgYAk2VOa1m8svA6bXDloMPwyxscXCRvbmfwGGS xsMNVtDhaB3a3meI3ymTd12S51kArqRL/maSEWZlOzL5tRJa5lLZzAFn2AUQKZhkY4ub vUc/np8l8ypf2WhUUE9kSBOV6zky1Yg9LmJJaoDT0da0V9T7NAFwZDW2LjJMg8BOkvTG OW8Q== X-Gm-Message-State: APjAAAUCqJDBeque60gmTve2zJXx9RJRU5WiPkVNlwHYhXNmTiS8bWM+ 1M5emZzIO1THFQSCDeMC7Bz6aVcaCD0= X-Received: by 2002:a1c:7304:: with SMTP id d4mr35564177wmb.39.1563360348744; Wed, 17 Jul 2019 03:45:48 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id o11sm22822097wmh.37.2019.07.17.03.45.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 17 Jul 2019 03:45:48 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Wed, 17 Jul 2019 11:45:38 +0100 Message-Id: <20190717104538.20990-3-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190717104538.20990-1-ross.burton@intel.com> References: <20190717104538.20990-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 3/3] 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Ross Burton --- meta/recipes-core/meta/cve-update-db-native.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.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 e16c41a72fd..72d1f48835b 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb @@ -62,7 +62,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