Author: atomo64-guest Date: 2013-12-05 12:53:52 +0000 (Thu, 05 Dec 2013) New Revision: 24591
Modified: check-external/update.sh Log: Prepare the external check scripts for the new format Modified: check-external/update.sh =================================================================== --- check-external/update.sh 2013-12-05 12:16:57 UTC (rev 24590) +++ check-external/update.sh 2013-12-05 12:53:52 UTC (rev 24591) @@ -23,7 +23,7 @@ export LANG=C check_list() { - if grep -vE '^CVE-[12][0-9]{3}-[0-9]{4}$' $1; then + if grep -vE '^CVE-[12][0-9]{3}-[0-9]{4,}$' $1; then echo "$1 contains garbage (see above), aborting" exit 1 fi @@ -36,7 +36,7 @@ for year in $(seq 1999 $(date +%Y)); do wget -N https://www.redhat.com/security/data/cve/cve-$year.html done -sed -rn '/CVE-[12][0-9]{3}-/{s/^.+>(CVE-[12][0-9]{3}-[0-9]{4})<.+$/\1/;T;p}' cve-*.html | +sed -rn '/CVE-[12][0-9]{2,}-/{s/^.+>(CVE-[12][0-9]{3}-[0-9]{4,})<.+$/\1/;T;p}' cve-*.html | sort > cve.list check_list cve.list @@ -47,7 +47,7 @@ # or as specified at the individual html files or elsewhere on cve.mitre.org's website for vendor in SUSE DEBIAN GENTOO FEDORA REDHAT UBUNTU; do wget -N http://cve.mitre.org/data/refs/refmap/source-$vendor.html - sed -rn '/CVE-[12][0-9]{3}-/{s/^.+>(CVE-[12][0-9]{3}-[0-9]{4})<.+$/\1/;p}' source-$vendor.html | + sed -rn '/CVE-[12][0-9]{3}-/{s/^.+>(CVE-[12][0-9]{3}-[0-9]{4,})<.+$/\1/;p}' source-$vendor.html | sort > $vendor.list check_list $vendor.list done _______________________________________________ Secure-testing-commits mailing list Secure-testing-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/secure-testing-commits