Hi jan, > > On Thu, 20 Jan 2011, Jan Engelhardt wrote: > >> >> Python 2.7(.0) reports "Python 2.7" for `python --version`. Instead of >> checking for a micro version that is not there, just see to it that the >> minor is right.
Michael Stefaniuc has already reported that bug. See the thread at http://lists.diku.dk/pipermail/cocci/2011-January/001441.html A fix is pending with + "Python 2\.([567]|[567]\.\S*)", I don't use perl very often (only to maintain that configure script in fact). So any insight on the better way to deal with that case is welcome. Is "qr/Python 2\.[567]\b/," better is some way to what is pending ? >> >> --- >> configure | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> Index: coccinelle-0.2.5-rc2/configure >> =================================================================== >> --- coccinelle-0.2.5-rc2.orig/configure >> +++ coccinelle-0.2.5-rc2/configure >> @@ -198,7 +198,7 @@ We need 3.XX", >> if($python) { >> if(check_config( >> "python --version 2>&1 |", >> - "Python 2\.[567]\..*", >> + qr/Python 2\.[567]\b/, >> "python is present", >> "python is missing or is not a good version." >> )) >> >> _______________________________________________ >> Cocci mailing list >> [email protected] >> http://lists.diku.dk/mailman/listinfo/cocci >> (Web access from inside DIKUs LAN only) >> > _______________________________________________ > Cocci mailing list > [email protected] > http://lists.diku.dk/mailman/listinfo/cocci > (Web access from inside DIKUs LAN only) > -- Nicolas Palix http://proton.inrialpes.fr/~npalix/ _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
