summaryrefslogtreecommitdiffstats
path: root/bin/get-todo-items
diff options
context:
space:
mode:
authorNico Golde <nion@debian.org>2007-09-20 18:14:54 +0000
committerNico Golde <nion@debian.org>2007-09-20 18:14:54 +0000
commit7a4167bf9cecb5c7ef9db15ae9c7fd465f3b7d2d (patch)
tree2400a2ea1d0edb1d52996a08c672b09e63b504a4 /bin/get-todo-items
parent4b3143947020cd935a530a5a67e422f69a391476 (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-xbin/get-todo-items47
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy