summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-07-17 11:45:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-07-18 12:16:19 +0100
commitc0017bee41ca8bafe9e66fc918a7aef4033484ff (patch)
tree9985f12fc1f98b633d27a6a18d7bf5a767a86609 /meta
parent7f5f884e555e9fc8afbbb1dd666026241f64789b (diff)
downloadpoky-c0017bee41ca8bafe9e66fc918a7aef4033484ff.tar.gz
cve-update-db-native: use SQL placeholders instead of format strings
(From OE-Core rev: 91770338f76ef35f3c4eeac216eb9d2b3188e575) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/meta/cve-update-db-native.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb
index e16c41a72f..72d1f48835 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() {
62 break 62 break
63 63
64 # Compare with current db last modified date 64 # Compare with current db last modified date
65 c.execute("select DATE from META where YEAR = '%d'" % year) 65 c.execute("select DATE from META where YEAR = ?", (year,))
66 meta = c.fetchone() 66 meta = c.fetchone()
67 if not meta or meta[0] != last_modified: 67 if not meta or meta[0] != last_modified:
68 # Update db with current year json file 68 # Update db with current year json file