vdr/vdr/debian plugin-loader.sh

Thomas Schmidt pkg-vdr-dvb-changes@lists.alioth.debian.org
Fri, 16 Jul 2004 09:34:27 +0000


Update of /cvsroot/pkg-vdr-dvb/vdr/vdr/debian
In directory haydn:/tmp/cvs-serv32232/vdr/vdr/debian

Modified Files:
	plugin-loader.sh 
Log Message:
fixed a small bug, causing plugin-loader.sh go into an infinite loop

Index: plugin-loader.sh
===================================================================
RCS file: /cvsroot/pkg-vdr-dvb/vdr/vdr/debian/plugin-loader.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- plugin-loader.sh	15 Jul 2004 21:28:50 -0000	1.4
+++ plugin-loader.sh	16 Jul 2004 09:34:25 -0000	1.5
@@ -29,7 +29,7 @@
     patchlevels=( "`LANG=en;dpkg -s ${packages[@]} 2>&1 | awk -F ':' '/^Package: / {p=$2} /^Package.*is not installed/ {print "\"\""} (/[pP]atchlevel:/ || /^$/) && p!="" {print "\""$2"\"";p=""}'`" )
 
     # move plugins with incompatible patchlevel to $leftout
-    for (( i=1 ; line<${#patchlevels[@]} ; i++ )); do
+    for (( i=1 ; i<${#patchlevels[@]} ; i++ )); do
         if [ "${patchlevels[0]}" != "${patchlevels[$i]}" ]; then
             leftout="${leftout} ${installed_plugins[$((i-1))]}"
             unset installed_plugins[$((i-1))]