Bug#299528: patch

Mike O'Connor Mike O'Connor <stew@vireo.org>, 299528@bugs.debian.org
Sat, 19 Mar 2005 11:02:34 -0500


299528 tags +patch

It looks like -15 introduced a "fix" to the code that searched for $kopt
variables.  This patch improves that fix and fixes this bug by replacing
+ with _ when looking for $kopt variables.

--- /sbin/update-grub   2005-02-17 18:20:22.000000000 -0500
+++ /tmp/update-grub    2005-03-19 10:56:15.000000000 -0500
@@ -529,7 +529,7 @@
        kernel_version=$1
 
        version=$(echo $kernel_version | sed 's/^[^0-9]*//')
-       version=$(echo $kernel_version | sed 's/[.-]/_/g')
+       version=$(echo $version | sed 's/[-\+\.]/_/g')
        if [ -n "$version" ] ; then
                while [ -n "$version" ] ; do
                        currentOpt="$(eval "echo \$kopt_$version")"