Patch provided by Andrew John Hughes <ahughes@redhat.com>
then
major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`
minor=`echo "$version" | $SED -e 's/^[[0-9]]*\.//' -e 's/\.[[0-9a-z.+]]*$//'`
- micro=`echo "$version" | $SED -e 's/^[[0-9]]*\.[[0-9]]*\.//' -e 's/[[a-z.+]]*$//'`
+ micro=`echo "$version" | $SED -r -e 's/^[[0-9]]*\.[[0-9]]*\.([[0-9]]*).*/\1/'`
extra=`echo "$version" | $SED -e 's/^[[0-9]]*\.[[0-9]]*\.[[0-9]]*//'`
else
major=`echo "$version" | $SED -e 's/\.[[0-9a-z.+]]*$//'`