aboutsummaryrefslogtreecommitdiffstats
path: root/bin/nist/datasource_2015.json
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2019-01-13 22:27:35 -0800
committerDavid Reyna <David.Reyna@windriver.com>2019-01-13 22:27:35 -0800
commita10fe453f2634d15cca1495e84085e43c65fbd3b (patch)
tree2628e3c29cba028add7364f8e26e366d8e889ede /bin/nist/datasource_2015.json
parent4ed4bf9a2559f1450081e1b79b22ff677235aa24 (diff)
downloadsrtool-a10fe453f2634d15cca1495e84085e43c65fbd3b.tar.gz
srtool-a10fe453f2634d15cca1495e84085e43c65fbd3b.tar.bz2
srtool-a10fe453f2634d15cca1495e84085e43c65fbd3b.zip
srtool: fix core update implementation
Fix the data source update mechanism: * Move the update functions to "bin/common/srtool_update.py" * Remove 'lastModifiedDate' from the data source JSON files (since every restart overwrites any updated values) * Change the 'update_time' field to a dictionary of offset values e.g. "{\"weekday\":\"6\",\"hour\":\"2\"}" = day of week, hour of day * Implement the update frequency calculations * Implement data source name filters for selected manual updates * Add a log status file [YOCTO #13131] Signed-off-by: David Reyna <David.Reyna@windriver.com>
Diffstat (limited to 'bin/nist/datasource_2015.json')
-rwxr-xr-xbin/nist/datasource_2015.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/nist/datasource_2015.json b/bin/nist/datasource_2015.json
index e26b0f75..ccca2f3f 100755
--- a/bin/nist/datasource_2015.json
+++ b/bin/nist/datasource_2015.json
@@ -10,9 +10,9 @@
"init" : "bin/nist/srtool_nist.py -I --source='NIST 2015' --file=data/nvdcve-1.0-2015.json --url-file=nvdcve-1.0-2015.json.gz --url-meta=nvdcve-1.0-2015.meta",
"update" : "bin/nist/srtool_nist.py -n --source='NIST 2015' --file=data/nvdcve-1.0-2015.json --url-file=nvdcve-1.0-2015.json.gz --url-meta=nvdcve-1.0-2015.meta",
"lookup" : "bin/nist/srtool_nist.py --file=data/nvdcve-1.0-2015.json %command%",
- "lastModifiedDate" : "2018-03-01 01:01:01",
"update_frequency" : "3",
- "update_time" : "02:00:00"
+ "_comment_" : "Update on Saturdays at 2:00 am",
+ "update_time" : "{\"weekday\":\"5\",\"hour\":\"2\"}"
}
]
}