]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
bugfix for scripts/patch-kernel in 2.6 sublevel stepping
authorErkki Lintunen <ebirdie@iki.fi>
Wed, 6 Aug 2008 20:11:33 +0000 (22:11 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 6 Aug 2008 20:11:33 +0000 (22:11 +0200)
scripts/patch-kernel script can't patch a tree, say, from 2.6.25 to
2.6.26.1, because of a wrong comparison in context of patching 2.6.x base.
 Fix it.

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/patch-kernel

index ece46ef0ba54e8f8ca48b008991f2aec217f0b1f..46a59cae3a0a6d52840483ab10212ef93fb6f3c3 100755 (executable)
@@ -213,6 +213,7 @@ fi
 if [ $stopvers != "default" ]; then
        STOPSUBLEVEL=`echo $stopvers | cut -d. -f3`
        STOPEXTRA=`echo $stopvers | cut -d. -f4`
+       STOPFULLVERSION=${stopvers%%.$STOPEXTRA}
        #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/"
 else
        STOPSUBLEVEL=9999
@@ -249,7 +250,7 @@ while :                             # incrementing SUBLEVEL (s in v.p.s)
 do
     CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
     EXTRAVER=
-    if [ $stopvers = $CURRENTFULLVERSION ]; then
+    if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
         echo "Stopping at $CURRENTFULLVERSION base as requested."
         break
     fi