diff options
author | Nico Golde <nion@debian.org> | 2007-09-20 18:14:54 +0000 |
---|---|---|
committer | Nico Golde <nion@debian.org> | 2007-09-20 18:14:54 +0000 |
commit | 7bf3491a9fa16a615b0eba3802928c14ee0cef3a (patch) | |
tree | c202a2993448910a651a4438ec077b330d20e0ec /bin/get-todo-items | |
parent | 1142e48939533f250cf174100a866dc19aef20f2 (diff) |
get-todo-items returns cve, package name, bug and bug status for a given unfixed issue, get-bug-status is used to get the status via soap
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@6654 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/get-todo-items')
-rwxr-xr-x | bin/get-todo-items | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/bin/get-todo-items b/bin/get-todo-items new file mode 100755 index 0000000000..d3762358d0 --- /dev/null +++ b/bin/get-todo-items @@ -0,0 +1,47 @@ +#!/bin/sh +# Nico Golde <nion@debian.org> +# Latest change: Do Sep 20 20:13:19 CEST 2007 +# extract TODO items for unfixed security issues in unstable/testing + +DATA="../data/CVE/list" +TMP="list.tmp" + +:> $TMP + +awk "BEGIN { RS = \"CVE-\" } /<unfixed>/" $DATA > $TMP + +while read LINE; do + + case "$LINE" in + *\-*\ \(*...\)) + CVE="CVE-$( echo "$LINE" | cut -d ' ' -f 1 )" + ;; + *NOTE:*) ;; + *\[etch\]*) ;; + *\[sarge\]*) ;; + *\<unfixed\>*) + # output unimportant issues with -v + if [ ! "$1" = "-v" ]; then + STATUS="$( echo "$LINE" | grep -e '(*unimportant)*' )" + if [ "x$STATUS" = "x$LINE" ]; then + continue + fi + fi + + PKG="$( echo "$LINE" | sed -e 's/.*- \(.\+\)\ <unfixed>.*/\1/' )" + BUG="$( echo "$LINE" | sed -e 's/.*bug\ #\([0-9]\+\).*/\1/' )" + + if [ "x$BUG" = "x" -o "x$BUG" = "x$LINE" ]; then + TODO="TODO: report bug" + echo "$CVE" "$PKG" "$TODO" + else + TODO="$( ./get-bug-status "$BUG" )" + echo "$CVE" "$PKG" "$BUG" "$TODO" + fi + ;; + *) ;; + esac + +done < $TMP + +rm -f $TMP |