From 2444f11f19d91c49338045e1f619edac2c4328eb Mon Sep 17 00:00:00 2001 From: Salvatore Bonaccorso Date: Sat, 31 Oct 2015 09:26:36 +0000 Subject: 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 --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3