[Secure-testing-commits] r10214 - bin

thomasbl-guest at alioth.debian.org thomasbl-guest at alioth.debian.org
Fri Oct 31 14:15:58 UTC 2008


Author: thomasbl-guest
Date: 2008-10-31 14:15:58 +0000 (Fri, 31 Oct 2008)
New Revision: 10214

Modified:
   bin/get-todo-items
Log:
change bin/get-todo-items, so that you can run it from everywhere



Modified: bin/get-todo-items
===================================================================
--- bin/get-todo-items	2008-10-31 10:42:23 UTC (rev 10213)
+++ bin/get-todo-items	2008-10-31 14:15:58 UTC (rev 10214)
@@ -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 @@
             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
         ;;




More information about the Secure-testing-commits mailing list