From 985925d70cca8f92b0f46707f2fba37f3e587a57 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Tue, 15 May 2007 17:10:42 -0700 Subject: [PATCH] make-version.py: accomodate windows by ignoring the junk that appears at the start of 'darcs changes' --- misc/make-version.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.45.2