summaryrefslogtreecommitdiffstats
path: root/bin/get-todo-items
diff options
context:
space:
mode:
authorThomas Bläsing <thomasbl@pool.math.tu-berlin.de>2008-10-31 14:15:58 +0000
committerThomas Bläsing <thomasbl@pool.math.tu-berlin.de>2008-10-31 14:15:58 +0000
commitefd0d3e7ab5bdc967035ab65e62d1b97c96b3230 (patch)
tree33f8523dace32cb0b28b77b8cedbe4f57e158a7a /bin/get-todo-items
parent15038e6f58778fde36bf0da71bfe61c76b01b158 (diff)
change bin/get-todo-items, so that you can run it from everywhere
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@10214 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/get-todo-items')
-rwxr-xr-xbin/get-todo-items10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/get-todo-items b/bin/get-todo-items
index d3762358d0..0f7af17002 100755
--- a/bin/get-todo-items
+++ b/bin/get-todo-items
@@ -3,7 +3,13 @@
# Latest change: Do Sep 20 20:13:19 CEST 2007
# extract TODO items for unfixed security issues in unstable/testing
-DATA="../data/CVE/list"
+
+_DIR=`pwd`
+_NEW_D=(${_DIR//\// })
+_CNT=`COUNT=0; for i in ${_NEW_D[*]}; do [ ${i} = "secure-testing" ] && echo ${COUNT}; COUNT=$(( COUNT + 1 )); done`
+_BASE="$( for i in `seq 0 ${_CNT}`; do echo -n "/${_NEW_D[${i}]}"; done; echo )"
+
+DATA="${_BASE}/data/CVE/list"
TMP="list.tmp"
:> $TMP
@@ -35,7 +41,7 @@ while read LINE; do
TODO="TODO: report bug"
echo "$CVE" "$PKG" "$TODO"
else
- TODO="$( ./get-bug-status "$BUG" )"
+ TODO="$( ${_BASE}/bin/get-bug-status "$BUG" )"
echo "$CVE" "$PKG" "$BUG" "$TODO"
fi
;;

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