mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
make-version.py: accomodate windows by ignoring the junk that appears at the start of 'darcs changes'
This commit is contained in:
parent
17b31a6e82
commit
985925d70c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user