History

bugfix for scripts/patch-kernel in 2.6 sublevel stepping

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.

Erkki Lintunen committed 18 years ago

Commit 07584161 parent 7a48bdd1 file · +2 −1Browse files

Showing the changes to scripts/patch-kernel (1 of 1 file). Show all

Unified · Split

scripts/patch-kernel+2−1
@@ -213,6 +213,7 @@ fi · 212 unmodified lines
213if [ $stopvers != "default" ]; then213if [ $stopvers != "default" ]; then
214 STOPSUBLEVEL=`echo $stopvers | cut -d. -f3`214 STOPSUBLEVEL=`echo $stopvers | cut -d. -f3`
215 STOPEXTRA=`echo $stopvers | cut -d. -f4`215 STOPEXTRA=`echo $stopvers | cut -d. -f4`
216 STOPFULLVERSION=${stopvers%%.$STOPEXTRA}
216 #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/"217 #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/"
217else218else
218 STOPSUBLEVEL=9999219 STOPSUBLEVEL=9999
@@ -249,7 +250,7 @@ while : # incrementing SUBLEVEL (s in v.p.s) · 30 unmodified lines
249do250do
250 CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"251 CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
251 EXTRAVER=252 EXTRAVER=
252 if [ $stopvers = $CURRENTFULLVERSION ]; then253 if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
253 echo "Stopping at $CURRENTFULLVERSION base as requested."254 echo "Stopping at $CURRENTFULLVERSION base as requested."
254 break255 break
255 fi256 fi