[Secure-testing-commits] r37472 - /

Salvatore Bonaccorso carnil at moszumanska.debian.org
Sat Oct 31 09:26:36 UTC 2015


Author: carnil
Date: 2015-10-31 09:26:36 +0000 (Sat, 31 Oct 2015)
New Revision: 37472

Modified:
   Makefile
Log:
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.

Modified: Makefile
===================================================================
--- Makefile	2015-10-31 09:10:13 UTC (rev 37471)
+++ Makefile	2015-10-31 09:26:36 UTC (rev 37472)
@@ -236,11 +236,14 @@
 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
 




More information about the Secure-testing-commits mailing list