[PATCH] python version check

Fredrik Lundh fredrik at pythonware.com
Fri Apr 15 19:27:33 BST 2005


here's a patch for the bzr start script that checks the python version.  if
the current interpreter is older than 2.3, it attempts to hand control over
to a more modern interpreter, if found.

this has been tested with 1.5.2 and newer.

(feel free to improve the error message, btw)

enjoy! /F 


begin 666 bzr-version-check.patch
M*BHJ(&UO9&EF:65D(&9I;&4@)V)Z<B<*+2TM(&)Z<B **RLK(&)Z<B *0$ @
M+3$W+#D@*S$W+#(S($! "B C(&%L;VYG('=I=&@@=&AI<R!P<F]G<F%M.R!I
M9B!N;W0L('=R:71E('1O('1H92!&<F5E(%-O9G1W87)E"B C($9O=6YD871I
M;VXL($EN8RXL(#4Y(%1E;7!L92!0;&%C92P at 4W5I=&4@,S,P+"!";W-T;VXL
M($U!(" P,C$Q,2TQ,S W("!54T$*( HM:6UP;W)T('-Y<RP at 8GIR;&EB+"!B
M>G)L:6(N8V]M;6%N9',**VEM<&]R="!O<RP@<WES"B **W1R>3H**R @("!V
M97)S:6]N7VEN9F\@/2!S>7,N=F5R<VEO;E]I;F9O"BME>&-E<'0 at 071T<FEB
M=71E17)R;W(Z"BL@(" @=F5R<VEO;E]I;F9O(#T@,2P at -2 C(#$N-2!O<B!O
M;&1E<@HK"BMI9B!V97)S:6]N7VEN9F\@/" H,BP@,RDZ"BL@(" @9F]R('!Y
M=&AO;B!I;B G<'ET:&]N,BXT)RP@)W!Y=&AO;C(N,R<Z"BL@(" @(" @('1R
M>3H**R @(" @(" @(" @(&]S+F5X96-V<"AP>71H;VXL(%MP>71H;VY=("L@
M<WES+F%R9W8I"BL@(" @(" @(&5X8V5P="!/4T5R<F]R. at HK(" @(" @(" @
M(" @<&%S<PHK(" @('!R:6YT("(J*BHB+" B8V%N;F]T(&9I;F0 at 82!S=6ET
M86)L92!P>71H;VX@:6YT97)P<F5T97(B"BL@(" @<WES+F5X:70H,2D**PHK
M:6UP;W)T(&)Z<FQI8BP at 8GIR;&EB+F-O;6UA;F1S"B *(&EF(%]?;F%M95]?
M(#T]("=?7VUA:6Y?7R<Z"B @(" @<WES+F5X:70H8GIR;&EB+F-O;6UA;F1S
8+FUA:6XH<WES+F%R9W8I*0HM(" @( H*
`
end






More information about the bazaar mailing list