aboutsummaryrefslogtreecommitdiffstats
path: root/bin/mitre/datasource_2016.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/mitre/datasource_2016.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/mitre/datasource_2016.json')
-rwxr-xr-xbin/mitre/datasource_2016.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mitre/datasource_2016.json b/bin/mitre/datasource_2016.json
index 4daad16e..36ca814f 100755
--- a/bin/mitre/datasource_2016.json
+++ b/bin/mitre/datasource_2016.json
@@ -10,9 +10,9 @@
"init" : "bin/mitre/srtool_mitre.py -I --source='Mitre 2016' --file=data/allitems-cvrf-year-2016.xml --url-file=allitems-cvrf-year-2016.xml",
"update" : "bin/mitre/srtool_mitre.py -u --source='Mitre 2016' --file=data/allitems-cvrf-year-2016.xml --url-file=allitems-cvrf-year-2016.xml",
"lookup" : "bin/mitre/srtool_mitre.py --file=data/allitems-cvrf-year-2016.xml %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\"}"
}
]
}