SVN: rc-scripts/trunk/rc.d/init.d/functions

glen glen at pld-linux.org
Thu Apr 24 23:21:06 CEST 2008


Author: glen
Date: Thu Apr 24 23:21:06 2008
New Revision: 9724

Modified:
   rc-scripts/trunk/rc.d/init.d/functions
Log:
- make stripping string suffixes from EXTRAVER more greedy

Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions	(original)
+++ rc-scripts/trunk/rc.d/init.d/functions	Thu Apr 24 23:21:06 2008
@@ -158,7 +158,7 @@
 		IFS=$old_IFS
 
 		# strip _* or -* from versions like: "2.6.25_vanilla-1", "2.6.25-1"
-		ver=${3%[-_]*}
+		ver=${3%%[-_]*}
 
 		while [ ${#ver} -lt 3 ]; do ver="0$ver"; done
 		ver="$2$ver"


More information about the pld-cvs-commit mailing list