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
commit2444f11f19d91c49338045e1f619edac2c4328eb (patch)
tree4e972bb4f289b5fa1558f52ee68fcef4b2e8fcfd /Makefile
parent0ecf724fce2f6fa2d11aa14e5d223c39d35e0aa9 (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