make-version.py: accomodate windows by ignoring the junk that appears at the start of 'darcs changes'

This commit is contained in:
Brian Warner 2007-05-15 17:10:42 -07:00
parent 17b31a6e82
commit 985925d70c

View 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: