From: Brian Warner Date: Wed, 16 May 2007 00:10:42 +0000 (-0700) Subject: make-version.py: accomodate windows by ignoring the junk that appears at the start... X-Git-Tag: allmydata-tahoe-0.3.0~82 X-Git-Url: https://git.rkrishnan.org/vdrive/%22news.html/index.php?a=commitdiff_plain;h=985925d70cca8f92b0f46707f2fba37f3e587a57;p=tahoe-lafs%2Ftahoe-lafs.git make-version.py: accomodate windows by ignoring the junk that appears at the start of 'darcs changes' --- diff --git a/misc/make-version.py b/misc/make-version.py index 466240e0..a4f68164 100644 --- a/misc/make-version.py +++ b/misc/make-version.py @@ -76,6 +76,12 @@ def update(): print "so I'm leaving version.py alone" return 0 + # windows' weird ssh process prepends some 'plink: unknown option "-O"' + # junk to the beginning of the otput. To overcome this, manually scan for + # the opening tag before giving anything to the xml parser. + + output = output[output.find(""):] + try: doc = xml.dom.minidom.parseString(output) except xml.parsers.expat.ExpatError: