summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSalvatore Bonaccorso <carnil@debian.org>2015-10-31 09:26:36 +0000
committerSalvatore Bonaccorso <carnil@debian.org>2015-10-31 09:26:36 +0000
commit3c705b8ed99fd502cb37749e52ec26679c0091dd (patch)
tree9fbb8d4f217e4437cb9ff55a1f2b8906b1112818 /Makefile
parent7835b4501d3b94642e398ae4106696d246b89a8a (diff)
update-nvd: Feeds are now compressed update update-nvd target
Sicne october 16, 2015 the XML data feeds are not longer available for download in a uncompressed format. Update the update-nvd target to fetch the gz compressed files and decompress them before processing them with update-nvd script. git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@37472 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index eb3db87b6c..be9d1ccf1d 100644
--- a/Makefile
+++ b/Makefile
@@ -236,11 +236,14 @@ update-backports-%:
update-lists:
svn update -q data
+# Since October 16, 2015 the XML data feeds are no longer available for
+# download in an uncompressed format.
update-nvd:
mkdir -p data/nvd
for x in $$(seq 2002 $$(date +%Y)) ; do \
- name=nvdcve-$$x.xml; \
+ name=nvdcve-$$x.xml.gz; \
wget -q -Odata/nvd/$$name https://nvd.nist.gov/download/$$name || true; \
+ gzip -d data/nvd/$$name || true; \
done
python bin/update-nvd data/nvd/nvdcve-*.xml

© 2014-2024 Faster IT GmbH | imprint | privacy policy