]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
make-version.py: accomodate windows by ignoring the junk that appears at the start...
authorBrian Warner <warner@allmydata.com>
Wed, 16 May 2007 00:10:42 +0000 (17:10 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 16 May 2007 00:10:42 +0000 (17:10 -0700)
misc/make-version.py

index 466240e0e6c3f7d1bb7b25a5d2cd174a10c90841..a4f68164447dec03f32bc53b508ea762b046943d 100644 (file)
@@ -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 <changelog> tag before giving anything to the xml parser.
+
+    output = output[output.find("<changelog>"):]
+
     try:
         doc = xml.dom.minidom.parseString(output)
     except xml.parsers.expat.ExpatError: